[Pkg-sysvinit-devel] Bug#497575: initscripts: /etc/rcS.d/S30checkfs.sh starts very soon

Sven Joachim svenjoac at gmx.de
Wed Sep 3 08:04:50 UTC 2008


forcemerge 386006 497575
thanks

The problem is not new, it has already been reported in #386006, as well
as several times in Ubuntu:

https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/40722
https://bugs.launchpad.net/ubuntu/+source/udev/+bug/47850
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/118397
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/182616

On 2008-09-02 22:23 +0200, Noel David Torres Taño wrote:

> I think the best solution is to check if there are devices being connected, maybe asking udev or udevd, but I do not know how to do it, and delay until then.

You can try to play around with this, but I highly doubt it would work,
since it's the kernel that has not yet detected the device.  Actually, I
added a line with `udevadm settle' to checkfs.sh, and it had no
effect -- the USB memory stick that I plugged in before the reboot was
only recognized a few seconds after checkfs.sh had run.

> Maybe checking specifically if any system to be checked is being connected.

The only real solution to this may be an event-based init system, like
upstart that is used in Ubuntu and Fedora.  There's also a Debian
package in experimental if you're feeling adventurous.

Sven





More information about the Pkg-sysvinit-devel mailing list