[Fai-commit] r5016 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sat Aug 9 11:35:22 UTC 2008


Author: lange
Date: 2008-08-09 11:35:22 +0000 (Sat, 09 Aug 2008)
New Revision: 5016

Modified:
   trunk/bin/make-fai-nfsroot
Log:
mount /dev/pts to avoid warnings "Can not write log, openpty() failed"


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2008-08-09 11:33:50 UTC (rev 5015)
+++ trunk/bin/make-fai-nfsroot	2008-08-09 11:35:22 UTC (rev 5016)
@@ -354,11 +354,12 @@
 	cp -p $v /etc/resolv.conf $NFSROOT/etc/resolv.conf-installserver
 	cp -p $v /etc/resolv.conf $NFSROOT/etc/resolv.conf # this is needed during make-fai-nfsroot
     fi
+    mount -t proc /proc $NFSROOT/proc
+    mount -t devpts devpts $NFSROOT/dev/pts
     $ROOTCMD apt-get update
     $ROOTCMD aptitude -Rfy install fai-nfsroot
     $ROOTCMD apt-get check
     rm -rf $NFSROOT/etc/apm
-    mount -t proc /proc $NFSROOT/proc
 
     if [ $divert = 1 ]; then
 	fdivert /usr/sbin/update-initramfs
@@ -394,6 +395,8 @@
     cd /
     [ -d $NFSROOT/proc/self ] && umount $NFSROOT/proc 
     [ -d $NFSROOT/proc/self ] && die "/proc still mounted inside the nfsroot."
+    umount $NFSROOT/dev/pts 2> /dev/null || true
+
     if [ "$FAI_DEBMIRROR" ]; then
         test -d $NFSROOT/$MNTPOINT && umount $NFSROOT/$MNTPOINT || true
     fi




More information about the Fai-commit mailing list