/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
# 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
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
# 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
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