[Fai-commit] r3130 - trunk/lib

fai-repository at svn.debian.org fai-repository at svn.debian.org
Thu Dec 1 23:59:40 UTC 2005


Author: lange
Date: 2005-12-01 23:59:40 +0000 (Thu, 01 Dec 2005)
New Revision: 3130

Modified:
   trunk/lib/updatebase
Log:
mount /dev into chroot during installation if we are trunning udev


Modified: trunk/lib/updatebase
===================================================================
--- trunk/lib/updatebase	2005-12-01 22:49:25 UTC (rev 3129)
+++ trunk/lib/updatebase	2005-12-01 23:59:40 UTC (rev 3130)
@@ -3,7 +3,8 @@
 if [ "$FAI_ACTION" = "install" ]; then
     # some packages must access /proc even in chroot environment
     mount -t proc proc $FAI_ROOT/proc
-
+    # if we are using udev, also mount it into $FAI_ROOT
+    [ -f /etc/init.d/udev ] && mount --bind /dev/$FAI_ROOT/dev
     # if libc is upgraded init u is called in chroot environment and
     # then init will eat up much cpu time
     fai-divert -a /sbin/init /usr/sbin/liloconfig /usr/sbin/invoke-rc.d




More information about the Fai-commit mailing list