Bug#818442: initscripts: Failing /run/shm migration and wrong message

Pierre Ynard linkfanel at yahoo.fr
Wed Feb 20 12:56:35 GMT 2019

> It requires using own kernel, isn't it? Just tested it, and remove of
> udev drags removal of initramfs-tools and kernel-image.


> Any ideas, when does it becomes read-write?

That would be when / is remounted in /etc/rcS.d/S06checkroot.sh, and
mount_shm() is first called earlier in /etc/rcS.d/S03mountdevsubfs.sh;
it seems that /etc/rcS.d/S11mountall.sh calls again mount_shm() and
stuff afterwards, but at that point something was already mounted on
/dev/shm the first time because the migration failed, so it's too late.

At least that's for the /dev/shm -> /run/shm direction. For /run/shm ->
/dev/shm, recreating the /dev/shm directory would fail at first but I
suspect it would succeed in the second call.

Pierre Ynard

More information about the Debian-init-diversity mailing list