[Fai-commit] r3873 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Wed Sep 6 12:55:03 UTC 2006


Author: lange
Date: 2006-09-06 12:55:03 +0000 (Wed, 06 Sep 2006)
New Revision: 3873

Modified:
   trunk/lib/updatebase
Log:
we also have to crea policy-rc.d inside the /tmp/target


Modified: trunk/lib/updatebase
===================================================================
--- trunk/lib/updatebase	2006-09-06 09:22:01 UTC (rev 3872)
+++ trunk/lib/updatebase	2006-09-06 12:55:03 UTC (rev 3873)
@@ -12,9 +12,15 @@
     # then init will eat up much cpu time
     fai-divert -a /sbin/init /usr/sbin/liloconfig /usr/sbin/invoke-rc.d
     # fake some more programs
-    fai-divert -a /etc/init.d/nis /sbin/start-stop-daemon
+    fai-divert -a /etc/init.d/nis /sbin/start-stop-daemon /usr/sbin/policy-rc.d
     # this will not work during dirinst
     cp /sbin/start-stop-daemon $FAI_ROOT/sbin/start-stop-daemon
+    # never start any daemons inside chroot during installtion
+    cat > $FAI_ROOT/usr/sbin/policy-rc.d <<EOF
+#!/bin/sh
+exit 101
+EOF
+    chmod a+rx $FAI_ROOT/usr/sbin/policy-rc.d
 fi
 
 # update the apt-get information inside the nfsroot 




More information about the Fai-commit mailing list