[Pkg-sysvinit-devel] Bug#457896: sysvinit: startpar fail to parallelize before /etc/init.d/udev is executed
Petter Reinholdtsen
pere at hungry.com
Wed Dec 26 22:55:14 UTC 2007
Package: sysvinit
Version: 2.86.ds1-42
Severity: important
I just tested to use CONCURRENCY=startpar after reordering the boot
sequence based on dependencies using insserv, and I noticed several
messages very early in the but on the form "could not get pty for
[script]". The script names were scripts in /etc/rcS.d/ to be
executed in parallel before udev was executed. The reason seem to be
that startpar depend on tty devices to be present in /dev/ to run
scripts in parallel, and these tty devices do not show up until udev
is done. The getpt() call fail if the devices are missing.
One fix for this might be to run scripts in sequence if getpt() fail.
Another is to make sure the scripts in the early boot depend on each
other in sequence, making sure no parallelization is tried. A third
option is to not use startpar for rcS.d/, and instead only use it for
the real runlevels (0-6).
Not quite sure how to best fix this.
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list