Package: fai-server
Version: 5.3.3~bpo8+2
Severity: important
Tags: patch

Hey,

at the moment fai-make-nfsroot tries to remove the mount point
set in the variable $MNTPOINT from the host system and not from
the NFSROOT.

IMHO should the line 501 in the script be fixes as shown in the
attached patch.

Best regards,
Jan
diff --git a/bin/fai-make-nfsroot b/bin/fai-make-nfsroot
index 8aebd6d..6d32b00 100755
--- a/bin/fai-make-nfsroot
+++ b/bin/fai-make-nfsroot
@@ -502,7 +502,7 @@ umount_dirs() {
 
     if [ -n "$FAI_DEBMIRROR" ]; then
         test -d $NFSROOT/$MNTPOINT && umount $NFSROOT/$MNTPOINT || true
-	rmdir $MNTPOINT || true
+        rmdir $NFSROOT/$MNTPOINT || true
     fi
     # show directories still mounted on nfsroot
     mount | grep " on $NFSROOT " || true

Reply via email to