Set EXITSTATUS in /etc/policy-rc.d.conf
authorMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 10:21:30 +0000 (11:21 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 4 Nov 2007 10:21:30 +0000 (11:21 +0100)
debian/changelog
etc/grml/fai/config/hooks/instsoft.GRMLBASE
etc/grml/fai/config/scripts/GRMLBASE/99-finish-grml-build

index 4ebbf93..ee21d4e 100644 (file)
@@ -7,6 +7,8 @@ grml-live (0.0.8) unstable; urgency=low
     /var/run/fai/FAI_INSTALLATION_IN_PROGRESS if we exit grml-live.
     (FAI's softupdate currently does not clean up when canceling
     the process.)
     /var/run/fai/FAI_INSTALLATION_IN_PROGRESS if we exit grml-live.
     (FAI's softupdate currently does not clean up when canceling
     the process.)
+  * Set EXITSTATUS in /etc/policy-rc.d.conf of chroot to 101 for
+    softupdate action.
 
  -- Michael Prokop <mika@grml.org>  Sun, 04 Nov 2007 01:43:06 +0100
 
 
  -- Michael Prokop <mika@grml.org>  Sun, 04 Nov 2007 01:43:06 +0100
 
index 63ae67d..447b40e 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Sun Nov 04 11:08:53 CET 2007 [mika]
+# Latest change: Sun Nov 04 11:21:02 CET 2007 [mika]
 ################################################################################
 
 set -u
 ################################################################################
 
 set -u
@@ -22,7 +22,11 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then
      else
         cat /etc/resolv.conf >> $target/etc/resolv.conf
      fi
      else
         cat /etc/resolv.conf >> $target/etc/resolv.conf
      fi
-  fi
+   fi
+
+   if [ -r $target/etc/policy-rc.d.conf ] ; then
+      sed -i "s/EXITSTATUS=.*/EXITSTATUS='101'/" $target/etc/policy-rc.d.conf
+   fi
 
    # make sure we prefer grml repository:
    if [ -r /etc/grml/fai/apt/preferences ] ; then
 
    # make sure we prefer grml repository:
    if [ -r /etc/grml/fai/apt/preferences ] ; then
index 7b03524..77ebe56 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Thu Nov 01 16:19:52 CET 2007 [mika]
+# Latest change: Sun Nov 04 11:20:55 CET 2007 [mika]
 ################################################################################
 
 set -u
 ################################################################################
 
 set -u
@@ -17,7 +17,10 @@ if [ -r $target/etc/apt/apt.conf ] ; then
    sed -i "s#APT::Install-Recommends.*#// &#"       $target/etc/apt/apt.conf
 fi
 
    sed -i "s#APT::Install-Recommends.*#// &#"       $target/etc/apt/apt.conf
 fi
 
-
+# Restore original state from softupdate:
+if [ -r $target/etc/policy-rc.d.conf ] ; then
+   sed -i "s/EXITSTATUS='101'/EXITSTATUS='0'/" $target/etc/policy-rc.d.conf
+fi
 
 # remove an existing /etc/debian_chroot file:
 if [ -r $target/etc/debian_chroot ] ; then
 
 # remove an existing /etc/debian_chroot file:
 if [ -r $target/etc/debian_chroot ] ; then