Bug#581704: Failing to run init script (or ordering problem) after upgrade from startpar to makefile

2010-05-15 Thread Josh Triplett
Package: sysvinit
Version: 2.88dsf-4
Severity: normal

Petter Reinholdtsen wrote:
 [Josh Triplett]
  I already used CONCURRENCY=startpar on my system, and it worked
  quite well, but I didn't use CONCURRENCY=makefile because it
  actually boots slower on my system.
 
 Interesting.  I assume there are bugs in some combination of init.d
 scripts on your system.  I use CONCURRENCY=makefile on several
 systems, and it work for me. :)

It used to work for me too at one point; it just booted a few seconds
slower, so I used startpar instead.

  After upgrading, when I rebooted to test the new mechanism, it seems
  that some key init scripts (such as mounting the root filesystem
  read-write and setting the hostname) either didn't run or didn't run
  soon enough; I got a pile of errors about failures to write due to a
  read-only filesystem, and the system stopped at some point and never
  finished booting.  To recover, I had to boot into single-user mode,
  remount the filesystem read-write, and set CONCURRENCY=none in
  /etc/default/rcS.
 
  I've attached pictures taken of the messages shown when booting with
  CONCURRENCY=startpar.
 
 Can you provide the output from /usr/share/insserv/make-testsuite,

Attached as make-testsuite.log.

 and
 also the content of /var/log/boot after editing /etc/default/bootlogd
 to enable bootlogd and rebooting once to record all errors?

Bootlogd seems unlikely to work with a read-only root filesystem.
However, if it would help, I could boot without quiet, and snap a
picture of the first screen of messages after /etc/init.d/rc says Using
makefile-style concurrent boot in runlevel S.

 Also,
 please provide the output from 'ls /etc/rc?.d'.

~$ ls /etc/rc?.d
/etc/rc0.d:
K01alsa-utilsK01gdm3 K02sendsigs  K06ifupdown
K01anacron   K01network-manager  K03rsyslog   K07umountfs
K01avahi-daemon  K01openbsd-inetdK04hwclock.shK08umountroot
K01bluetooth K01qemu-kvm K04umountnfs.sh  K09halt
K01fuse  K01urandom  K05networkingREADME

/etc/rc1.d:
K01anacron   K01cron  K01network-manager  K03rsyslog   S01killprocs
K01avahi-daemon  K01cups  K01openbsd-inetdREADME   S02single
K01bluetooth K01gdm3  K01qemu-kvm S01bootlogs  S05bootchart

/etc/rc2.d:
README S01sudo  S02openbsd-inetdS04gdm3
S01bootlogsS02anacron   S02rsyncS05bootchart
S01loadcpufreq S02cpufrequtils  S03avahi-daemon S05rc.local
S01nethack-common  S02cron  S03bluetoothS05rmnologin
S01qemu-kvmS02dbus  S03network-manager  S05stop-bootlogd
S01rsyslog S02ntp   S04cups

/etc/rc3.d:
README S01sudo  S02openbsd-inetdS04gdm3
S01bootlogsS02anacron   S02rsyncS05bootchart
S01loadcpufreq S02cpufrequtils  S03avahi-daemon S05rc.local
S01nethack-common  S02cron  S03bluetoothS05rmnologin
S01qemu-kvmS02dbus  S03network-manager  S05stop-bootlogd
S01rsyslog S02ntp   S04cups

/etc/rc4.d:
README S01sudo  S02openbsd-inetdS04gdm3
S01bootlogsS02anacron   S02rsyncS05bootchart
S01loadcpufreq S02cpufrequtils  S03avahi-daemon S05rc.local
S01nethack-common  S02cron  S03bluetoothS05rmnologin
S01qemu-kvmS02dbus  S03network-manager  S05stop-bootlogd
S01rsyslog S02ntp   S04cups

/etc/rc5.d:
README S01sudo  S02openbsd-inetdS04gdm3
S01bootlogsS02anacron   S02rsyncS05bootchart
S01loadcpufreq S02cpufrequtils  S03avahi-daemon S05rc.local
S01nethack-common  S02cron  S03bluetoothS05rmnologin
S01qemu-kvmS02dbus  S03network-manager  S05stop-bootlogd
S01rsyslog S02ntp   S04cups

/etc/rc6.d:
K01alsa-utilsK01gdm3 K02sendsigs  K06ifupdown
K01anacron   K01network-manager  K03rsyslog   K07umountfs
K01avahi-daemon  K01openbsd-inetdK04hwclock.shK08umountroot
K01bluetooth K01qemu-kvm K04umountnfs.sh  K09reboot
K01fuse  K01urandom  K05networkingREADME

/etc/rcS.d:
READMES08mtab.shS16mountnfs-bootclean.sh
S01mountkernfs.sh S09checkfs.sh S17kbd
S02udev   S10ifupdown   S18console-setup
S03mountdevsubfs.sh   S10mountall.shS19alsa-utils
S04bootlogd   S11mountall-bootclean.sh  S19bootmisc.sh
S05keyboard-setup S12mountoverflowtmp   S19fuse
S06hostname.shS13pcmciautilsS19lm-sensors
S06hwclockfirst.shS13procps S19schroot
S07checkroot.sh   S13udev-mtab  S19screen-cleanup
S08hwclock.sh S13x11-common S19urandom
S08ifupdown-clean S14networking S20stop-bootlogd-single
S08module-init-tools  S15mountnfs.sh

- Josh Triplett

-- System Information:

Bug#581704: Failing to run init script (or ordering problem) after upgrade from startpar to makefile

2010-05-15 Thread Petter Reinholdtsen
[Josh Triplett]
 Bootlogd seems unlikely to work with a read-only root filesystem.

Ah, right.

 However, if it would help, I could boot without quiet, and snap a
 picture of the first screen of messages after /etc/init.d/rc says
 Using makefile-style concurrent boot in runlevel S.

Yes, please.  Your initial pictures did not show any messages when
running the scripts in rcS.d/ (which is not really the runlevel S, but
the boot sequence), and the rest of the messages also looked like
the scripts in rcS.d/ did not run at all.  I have no idea how this can
happen, and welcome more information.  What is the content of your
/etc/init.d/.depend.* files?  The .depend.boot file would be used for
rcS.d/.

 ~$ ls /etc/rc?.d

All of these look fine.  The most important one is the rcS.d/ list:

 /etc/rcS.d:
 READMES08mtab.shS16mountnfs-bootclean.sh
 S01mountkernfs.sh S09checkfs.sh S17kbd
 S02udev   S10ifupdown   S18console-setup
 S03mountdevsubfs.sh   S10mountall.shS19alsa-utils
 S04bootlogd   S11mountall-bootclean.sh  S19bootmisc.sh
 S05keyboard-setup S12mountoverflowtmp   S19fuse
 S06hostname.shS13pcmciautilsS19lm-sensors
 S06hwclockfirst.shS13procps S19schroot
 S07checkroot.sh   S13udev-mtab  S19screen-cleanup
 S08hwclock.sh S13x11-common S19urandom
 S08ifupdown-clean S14networking S20stop-bootlogd-single
 S08module-init-tools  S15mountnfs.sh

This is the ordering on my test machine, if you want to compare:

r...@tjener:~# ls /etc/rcS.d/
README   S10ifupdown-clean S19portmap
S01mountkernfs.shS10module-init-tools  S20nfs-common
S02early-readahead   S10mtab.shS21mountnfs.sh
S03udev  S11checkfs.sh S22mountnfs-bootclean.sh
S04mountdevsubfs.sh  S12resize_lvm S23console-screen.sh
S05bootlogd  S13mountall.shS24console-setup
S06keymap.sh S14mountall-bootclean.sh  S25alsa-utils
S07keyboard-setupS15mountoverflowtmp   S25bootmisc.sh
S08hdparmS16procps S25fuse
S08hostname.sh   S16resolvconf S25later-readahead
S08hwclockfirst.sh   S16udev-mtab  S25screen-cleanup
S08lvm2  S16x11-common S25urandom
S09checkroot.sh  S17ifupdown   S26stop-bootlogd-single
S10hwclock.shS18networking
r...@tjener:~#

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org