diff options
| author | Jonathan Bauer | 2013-04-11 16:55:53 +0200 |
|---|---|---|
| committer | sr | 2013-04-12 19:11:42 +0200 |
| commit | cc3808cdfec8976e89af699821f3f84dff0abfd2 (patch) | |
| tree | f1bd98574a051e6a9a42ad85c38a03ba3dd551c3 | |
| parent | PAM: first check unix, then LDAP (diff) | |
| download | tm-scripts-cc3808cdfec8976e89af699821f3f84dff0abfd2.tar.gz tm-scripts-cc3808cdfec8976e89af699821f3f84dff0abfd2.tar.xz tm-scripts-cc3808cdfec8976e89af699821f3f84dff0abfd2.zip | |
fix cryptic error when nfs-common not installed
| -rw-r--r-- | helper/kernel.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helper/kernel.inc b/helper/kernel.inc index 366c0f44..f37ca8f3 100644 --- a/helper/kernel.inc +++ b/helper/kernel.inc @@ -24,8 +24,9 @@ mount_kernel_dir() { mount -t nfs -o ro "132.230.8.228:/srv/openslx/kernel" "$KERNEL_NFS_DIR" local RET=$? if [ "x$RET" != "x0" ]; then + local BROKEN_KERNEL_NFS_DIR="${KERNEL_NFS_DIR}" KERNEL_NFS_DIR="" - perror "Mounting kernel nfs dir to $KERNEL_NFS_DIR failed." + perror "Mounting kernel nfs dir to $BROKEN_KERNEL_NFS_DIR failed. Is 'nfs-common' installed?" exit 1 fi #pinfo "$KERNEL_NFS_DIR/$SELECTED_KERNEL" |
