[Pkg-sysvinit-devel] Bug#686498: [initscripts] no more mouse and keyboard (#669949, #670156) has not been fixed

Eric Kelm eric.kelm at web.de
Sun Sep 2 19:58:04 UTC 2012


I tracked it down to a wrong order in which the initscripts are run. This is 
the list of my scripts in rcS.d

...
S11checkroot-bootclean.sh
S11kmod
S11mtab.sh
S12cryptdisks
S13checkfs.sh
S14mountall.sh
S15console-screen.sh
S16console-setup
S17alsa-utils
S17bootmisc.sh
S17fuse
S17lm-sensors
S17mountall-bootclean.sh
...

first S11checkroot-bootclean.sh ignores the files in /run because the .tmpfs file 
is still present. S17mountall-bootclean.sh then cleans /run, because somewhere 
in between, the .tmpfs got removed. Turns out that S17bootmisc.sh contains 
this gem:

...
        # Remove bootclean's flag files.
        # Don't run bootclean again after this!
        rm -f /tmp/.clean /lib/init/rw/.clean /run/.clean /run/lock/.clean
        rm -f /tmp/.tmpfs /lib/init/rw/.tmpfs /run/.tmpfs /run/lock/.tmpfs
...

 Then i noticed this in the description of bootmisc.sh


Description:       Some cleanup.  Note, it need to run after mountnfs-
bootclean.sh.

I have disabled mountnfs.sh and mountnfs-bootclean.sh. cause i dont use nfs 
here. I guess this is why the ordering gets messed up.

So I guess you need to make sure that bootmisc always runs after mountall-
bootclean.sh.



More information about the Pkg-sysvinit-devel mailing list