[Pkg-sysvinit-devel] Bug#671124: initscripts: Fails to update due to mountoverflowtmp

Roger Leigh rleigh at codelibre.net
Sun Jun 24 16:55:03 UTC 2012


On Sun, Jun 24, 2012 at 06:39:25PM +0200, Petter Reinholdtsen wrote:
> [Roger Leigh]
> > Petter, maybe we should add that function back, doing just this single
> > check?  Since this affects all initscripts (despite it being very
> > unusual to want to delete critical initscripts), we should probably
> > do this for all scripts.
> 
> The function was removed because it was not handling dependency based boot
> sequencing, and I suspect it is better to work with the tools currently
> available instead of trying to use the old function.

How does the following look to you?  (I only wanted to put the
check for whether the script exists in the shell function, BTW, not
to keep any of the old logic.)

diff --git a/debian/bootlogd.postinst b/debian/bootlogd.postinst
index 381fb69..d07cd8d 100644
--- a/debian/bootlogd.postinst
+++ b/debian/bootlogd.postinst
@@ -1,8 +1,14 @@
 #!/bin/sh
 set -e
 
-update-rc.d bootlogd             start 05 S . >/dev/null || exit $?
-update-rc.d stop-bootlogd-single start 99 S . >/dev/null || exit $?
-update-rc.d stop-bootlogd        start 99 2 3 4 5 . >/dev/null || exit $?
+if [ -x /etc/init.d/bootlogd ]; then
+    update-rc.d bootlogd             start 05 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/stop-bootlogd-single ]; then
+    update-rc.d stop-bootlogd-single start 99 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/stop-bootlogd ]; then
+    update-rc.d stop-bootlogd        start 99 2 3 4 5 . >/dev/null || exit $?
+fi
 
 #DEBHELPER#
diff --git a/debian/initscripts.postinst b/debian/initscripts.postinst
index 7235100..b6b319e 100755
--- a/debian/initscripts.postinst
+++ b/debian/initscripts.postinst
@@ -150,34 +150,83 @@ fi
 #
 # Links in runlevel S
 #
+if [ -x /etc/init.d/mountkernfs.sh ]; then
 update-rc.d mountkernfs.sh         start 02 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/hostname.sh ]; then
 update-rc.d hostname.sh            start 02 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mountdevsubfs.sh ]; then
 update-rc.d mountdevsubfs.sh       start 04 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/checkroot.sh ]; then
 update-rc.d checkroot.sh           start 10 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mtab.sh ]; then
 update-rc.d mtab.sh                start 12 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/checkroot-bootclean.sh ]; then
 update-rc.d checkroot-bootclean.sh start 13 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/checkfs.sh ]; then
 update-rc.d checkfs.sh             start 30 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mountall.sh ]; then
 update-rc.d mountall.sh            start 35 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mountall-bootclean.sh ]; then
 update-rc.d mountall-bootclean.sh  start 36 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mountnfs.sh ]; then
 update-rc.d mountnfs.sh            start 45 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/mountnfs-bootclean.sh ]; then
 update-rc.d mountnfs-bootclean.sh  start 46 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/bootmisc.sh ]; then
 update-rc.d bootmisc.sh            start 55 S . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/urandom ]; then
 update-rc.d urandom                start 55 S . start 30 0 6 . >/dev/null || exit $?
+fi
+
 #
 # Links in runlevels other than S
 #
+if [ -x /etc/init.d/halt ]; then
 update-rc.d halt                   start 90 0 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/reboot ]; then
 update-rc.d reboot                 start 90 6 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/umountroot ]; then
 update-rc.d umountroot             start 60 0 6 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/umountfs ]; then
 update-rc.d umountfs               start 40 0 6 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/umountnfs.sh ]; then
 update-rc.d umountnfs.sh           start 31 0 6 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/sendsigs ]; then
 update-rc.d sendsigs               start 20 0 6 . >/dev/null || exit $?
+fi
 
+if [ -x /etc/init.d/killprocs ]; then
 update-rc.d killprocs              start 30 1 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/single ]; then
 update-rc.d single                 start 90 1 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/motd ]; then
 update-rc.d motd                   start 70 1 2 3 4 5 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/rc.local ]; then
 update-rc.d rc.local               start 99 2 3 4 5 . >/dev/null || exit $?
+fi
+if [ -x /etc/init.d/rmnologin ]; then
 update-rc.d rmnologin              start 99 2 3 4 5 . >/dev/null || exit $?
+fi
 
 #
 # Remove scripts that were left behind by older glibc (<< 2.3.2.ds1-12)

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800





More information about the Pkg-sysvinit-devel mailing list