[PATCH 9/9] Add check to avoid SSH and NFS being set together

Louis Bouchard louis.bouchard at ubuntu.com
Wed Aug 20 04:11:20 PDT 2014


Signed-off-by: Louis Bouchard <louis.bouchard at ubuntu.com>
---
 debian/kdump-config | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/kdump-config b/debian/kdump-config
index 37932ac..9ff9892 100755
--- a/debian/kdump-config
+++ b/debian/kdump-config
@@ -152,6 +152,10 @@ function check_kdump_support()
 		log_failure_msg "no crashkernel= parameter in the kernel cmdline"
 		[ ! $DRY_RUN ] && exit 1;
 	fi
+        if [ -n "$NFS" ] && [ -n "$SSH" ];then
+		log_failure_msg "\$SSH and \$NFS cannot be define concurrently"
+		[ ! $DRY_RUN ] && exit 1;
+	fi
 }
 
 # check_relocatable: check if the given kernel config is relocatable
-- 
1.9.1




More information about the kexec mailing list