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

Roger Leigh rleigh at codelibre.net
Thu Nov 8 00:22:47 UTC 2012


On Wed, Nov 07, 2012 at 08:03:39PM +0100, Jakub Wilk wrote:
> Control: reopen -1 Control: found -1 2.88dsf-32
> 
> * Jakub Wilk <jwilk at debian.org>, 2012-06-11, 18:20:
> >mountall-bootclean.sh removes files from /run, but these may
> >include files created by init scripts earlier in the same boot
> >process. I observed this because the script nuked files in
> >/run/udev/, leaving my X server without any input devices.
> 
> I can still reproduce this bug.

That's a bit frustrating, I thought we had this nailed now.

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:

        # Does not exist
        [ -d "$dir" ] || return 1
        # tmpfs does not require cleaning
        [ -f "$dir/.tmpfs" ] && return 0
        # Can clean?
        checkflagfile "$dir" || return 0
        # Already cleaned
        [ -f "${dir}/.clean" ] && return 0
        # Can't clean yet?
        which find >/dev/null 2>&1 || return 1

Could you possibly put some print statements in there and find
out if all these pass?  If so, is the ".tmpfs" file missing?
Or the ".clean" flag file?  If that's the case, we really need
to know why they aren't present, since they should have been
created before this point.

If the init scripts are being run in the wrong order, these
could potentially be run after the files were deleted.


Thanks,
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