[Pkg-sysvinit-devel] Bug#677097: I know what the problem is, don't know the solution

Roger Leigh rleigh at codelibre.net
Thu Jun 21 19:27:29 UTC 2012


On Thu, Jun 21, 2012 at 07:18:09PM +0100, Alan Chandler wrote:
> I found the problem.  Its in /etc/init.d/mountall.sh
> 
> This script calls the mount-functions.sh script in /lib/init
> 
> One of the things it does is attempt to mount /run as a tmpfs and
> just after that the udev messages I already showed started happening
> 
> The key to this was in the boot log output where I have verbose set
> to "YES" and the line it output was
> 
> Thu Jun 21 18:12:43 2012: [....] Files under mount point '/run' will
> be hidden.

Do you have an entry in /etc/fstab for /run?

The first three fields *must* be

tmpfs /run tmpfs

or it will think the filesystem type doesn't match, and do a new
mount rather than a remount.

> I tried commenting out the actual mount of /run but it meant that
> even in recovery mode I had no keyboard, and hotpluging it in and
> out didn't restore it. I had to use a rescue disk to recover the
> system.  However when I did comment it out, these messages from
> udevd stopped.

Are you using an initramfs?  It should already be mounted if so.
And in this situation, it should just result in a remount with
the options from /etc/fstab.  If you're not, it should mount it
in mountkernfs and then remount in mountall if there's an fstab
entry.

This is as documented in tmpfs(5).


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