[Pkg-sysvinit-devel] Bug#818442: initscripts: Failing /run/shm migration and wrong message

Pierre Ynard linkfanel at yahoo.fr
Thu Mar 17 02:12:30 UTC 2016


Package: initscripts
Version: 2.88dsf-59.2
Severity: normal

During my boot sequence, when /etc/init.d/mountdevsubfs.sh is run, I get
the following logs:

> Filesystem mounted on /dev/shm; setting up compatibility bind mount.
> Please remove this mount from /etc/fstab; it is no longer needed, and it is preventing completion of the transition to /run/shm.

My /etc/fstab features no /dev/shm, nor /run/shm, nor any pseudo
filesystem. So if nothing else we already have a problem in the form of
a wrong and confusing warning message.

Digging a little deeper, my system doesn't run udev and uses a static,
disk-backed /dev. It contains an empty /dev/shm/ directory. When looking
into /lib/init/mount-functions.sh it appears it tries to permanently
symlink /dev/shm to /run/shm, and prints the warning after it fails
to delete my /dev/shm/ directory. The warning assumes that this is
because it is a mount point, however it's not, and it is rather my
understanding that the old /dev/shm/ directory removal fails simply
because the filesystem is still read-only at that point.

I suppose that ideally, the script should migrate this properly, at a
time when the filesystem is read-write. At least, it should be modified
to print an accurate diagnosis and instructions on how to fix this
manually.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)

Kernel: Linux 4.4.4-grsec
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages initscripts depends on:
ii  coreutils       8.25-2
ii  debianutils     4.7
ii  lsb-base        9.20160110
ii  mount           2.27.1-3
ii  sysv-rc         2.88dsf-59.2
ii  sysvinit-utils  2.88dsf-59.2

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.13-1
ii  psmisc     22.21-2.1

initscripts suggests no packages.

-- Configuration Files:
/etc/default/rcS changed [not included]

-- no debconf information



More information about the Pkg-sysvinit-devel mailing list