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

Noel David Torres Taño envite at rolamasao.org
Tue Sep 2 20:23:42 UTC 2008


El Tuesday 02 September 2008 22:03:45 Sven Joachim escribió:
> tags 497575 - patch
> thanks
> 
> On 2008-09-02 21:47 +0200, Noel David Torres Taño wrote:
> 
> > It can happen that a system which needs to mount external USB disks detects them some seconds after /etc/rcS.d/S30checkfs.sh starts.
> >
> > In my laptom system, I see the USB udev lines just below the "Press Control-D" line. The following patch works for me:
> >
> > PATCH:
> > --- checkfs.sh.original 2008-09-02 21:45:40.000000000 +0200
> > +++ checkfs.sh  2008-09-02 20:47:01.000000000 +0200
> > @@ -110,6 +110,7 @@
> >
> >  case "$1" in
> >    start|"")
> > +       /bin/sleep 5
> 
> While it's nice that this works around the problem for you, I hope you
> understand that delaying the boot of every Debian system on the planet
> for five seconds is not an acceptable solution.  Thus I've removed the
> patch tag.
> 
> Regards,
>         Sven
> 

Well, it's only a workaround in the "it works for me" series :)

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.

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

Thanks

Noel Torres
er Envite
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20080902/b9bbcb22/attachment.pgp 


More information about the Pkg-sysvinit-devel mailing list