[Pkg-sysvinit-devel] Bug#677097: mountall-bootclean.sh nukes udev's data in /run

Roger Leigh rleigh at codelibre.net
Thu Nov 8 22:32:24 UTC 2012


On Thu, Nov 08, 2012 at 12:44:09PM +0100, Jakub Wilk wrote:
> * Roger Leigh <rleigh at codelibre.net>, 2012-11-08, 00:22:
> >
> >Would it be possible to debug this in a bit more detail on your
> >system? /lib/init/bootclean.sh's clean function must be failing
> >all these checks:
> 
> Thu Nov  8 12:17:30 2012: Cleaning up temporary files....
> Thu Nov  8 12:17:30 2012: BEFORE BOOTMISC: [ .tmpfs dhclient.eth0.pid initctl initramfs lock mount network sendsigs.omit.d shm udev utmp ]
> Thu Nov  8 12:17:30 2012: AFTER BOOTMISC: [ dhclient.eth0.pid initctl initramfs lock mount network sendsigs.omit.d shm udev utmp ]
> Thu Nov  8 12:17:31 2012: Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
> Thu Nov  8 12:17:31 2012: BEFORE MOUNTALL-BOOTCLEAN: [ dhclient.eth0.pid initctl initramfs lock mount network sendsigs.omit.d shm udev utmp ]
> Thu Nov  8 12:17:31 2012: Cleaning up temporary files... /tmp /lib/init/rw /run /run/lock /run/shm.
> Thu Nov  8 12:17:31 2012: AFTER MOUNTALL-BOOTCLEAN: [ .clean initramfs lock mount network sendsigs.omit.d shm udev utmp ]
> Thu Nov  8 12:17:31 2012: INIT: Entering runlevel: 2
> 
> (This is on a VM on which I had to impose a sleep to make the bug
> trigger. However, the bug also triggers naturally on my development
> machine, which I can't reboot right know, though I'm pretty sure the
> cause is the same there.)
> 
> As I understand it, bootmisc is supposed to be run _after_
> mountall-bootclean, though this order doesn't seem to be enforced in
> any way.

So it's looking like we may be just missing a dependency here, so the
bug would be present all the time, but the parallelism is exposing it
more frequently.

Would be worth checking the /etc/init.d/depend files and running
/usr/share/insserv/make-testsuite to see exactly where bootmisc is
being placed in the depdendency graph.  The intention is that this
won't run until after mountall-bootclean.  I /think/ that the
$remote_fs is supposed to ensure this, but this might not be good
enough.  Maybe we need to add mountall_bootclean to $local_fs, or
add X-Start-Before: bootmish.sh to mountall_bootclean.

Could you possible try both of those, rerun insserv, and see if this
prevents the problem from occuring?


Thanks again,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Pkg-sysvinit-devel mailing list