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

Hey,

fai-make-nfsroot mounts $NFSROOT/dev/pts in the upgrade_nfsroot() function.
When trying to create a stretch nfsroot, the mountpoint $NFSROOT/dev/pts does 
not
already exists so fai-make-nfsroot should take care of this and create the 
folder
if needed, otherwise the mount operation is not successful.

The attached patch should fix the problem.

Best regards,
Jan
diff --git a/bin/fai-make-nfsroot b/bin/fai-make-nfsroot
index 8aebd6d..a6874bc 100755
--- a/bin/fai-make-nfsroot
+++ b/bin/fai-make-nfsroot
@@ -443,6 +443,7 @@ upgrade_nfsroot() {
 
     mount -t proc   /proc  $NFSROOT/proc
     mount -t sysfs  /sys   $NFSROOT/sys
+    [ -d $NFSROOT/dev/pts ] || mkdir -p $NFSROOT/dev/pts
     mount -t devpts devpts $NFSROOT/dev/pts
     /usr/lib/fai/mkramdisk $NFSROOT/var/lib/dpkg $NFSROOT/var/cache
     mkdir $NFSROOT/etc/mdadm; touch $NFSROOT/etc/mdadm/mdadm.conf # stop mdadm from calling mkconf

Reply via email to