[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#340688: /etc/init.d/initrd-tools.sh exits



Package: initrd-tools
Version: 0.1.84
Severity: serious

Debian Policy states (§9.3.1):

   "Also, if the script name ends `.sh', the script will be sourced in
    runlevel `S' rather that being run in a forked subprocess, but will
    be explicitly run by `sh' in all other runlevels".

Accordingly, .sh scripts run from /etc/rcS.d/ should not do "exit".

/etc/init.d/initrd-tools.sh is run from /etc/rcS.d/ and it does do "exit".

$ grep exit /etc/init.d/initrd-tools.sh
[ "$KEEPINITRD" = yes ] && exit
command -v blockdev > /dev/null 2>&1 || exit 0
        mount -n /proc || exit
grep -q '^[^ ]* /initrd ' /proc/mounts || exit 0
        umount /initrd/dev || exit
umount /initrd || exit
        exit 1

This prevents sysv-rc from obeying policy §9.3.1.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (700, 'unstable'), (400, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-3-686
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro (charmap=ISO-8859-15)

Versions of packages initrd-tools depends on:
ii  coreutils [fileutils]         5.93-5     The GNU core utilities
ii  cpio                          2.6-9      GNU cpio -- a program to manage ar
ii  cramfsprogs                   1.1-6      Tools for CramFs (Compressed ROM F
ii  dash                          0.5.2-8    The Debian Almquist Shell
ii  fileutils                     5.93-5     The GNU file management utilities 
ii  util-linux                    2.12p-8    Miscellaneous system utilities

initrd-tools recommends no packages.

-- no debconf information



Reply to: