Rework policy-rc.d handling in updatebase once again
authorMichael Prokop <mika@grml.org>
Wed, 15 Oct 2008 23:04:53 +0000 (01:04 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 15 Oct 2008 23:04:53 +0000 (01:04 +0200)
debian/changelog
etc/grml/fai/config/hooks/updatebase.GRMLBASE

index 4ca8ba3..e5f7306 100644 (file)
@@ -4,10 +4,12 @@ grml-live (0.9.5) unstable; urgency=low
     [Closes: issue552]
   * Drop xserver-xorg-video-newport from all flavours.
   * Replace all unzoo package references with zoo, see #497775.
-  * Drop 'skiptask updatebase' workaround in
-    /etc/grml/fai/config/hooks/updatebase.GRMLBASE.
+  * Handle policy-rc.d in /etc/grml/fai/config/hooks/updatebase.GRMLBASE
+    because we have to skip FAI's updatebase task and lack /proc therefore.
+    New packages that are being installed and want to start any daemons
+    might fail, let's try to do our best to avoid that.
 
- -- Michael Prokop <mika@grml.org>  Wed, 15 Oct 2008 23:20:54 +0200
+ -- Michael Prokop <mika@grml.org>  Thu, 16 Oct 2008 01:03:24 +0200
 
 grml-live (0.9.4) unstable; urgency=low
 
index 933bb8c..0c46d00 100755 (executable)
@@ -9,18 +9,18 @@
 if [ "$FAI_ACTION" = "softupdate" ] ; then
 
    ## we want to use our own sources.list:
-   skiptask updatebase
+   skiptask updatebase
 
    ## make sure we don't start any daemons - removed
    ## later on via /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
-#   if ! [ -r $target/usr/sbin/policy-rc.d ] ; then
-#      cat > $target/usr/sbin/policy-rc.d << EOF
-##!/bin/sh
-## FAI_ACTION=updatebase
-#exit 101
-#EOF
-#      chmod 755 $target/usr/sbin/policy-rc.d
-#   fi
+   if ! [ -r $target/usr/sbin/policy-rc.d ] ; then
+      cat > $target/usr/sbin/policy-rc.d << EOF
+#!/bin/sh
+# FAI_ACTION=updatebase
+exit 101
+EOF
+      chmod 755 $target/usr/sbin/policy-rc.d
+   fi
 
    # skip the task if we want to build a new ISO only:
    [ -n "$BUILD_ONLY" ] && skiptask instsoft || /bin/true