Comment 63 for bug 321927

Revision history for this message
Jarkko Lietolahti (jarkko-jab) wrote :

Is this bug tracked by another issue? Simply marking this bug as invalid will not fix the actual problem (which is /dev/shm and /dev/pts not being mounted on reboot after upgrade).

If the tools are not obeying the Should-Start: directive in mountdevsubfs.sh, why not change it to Required-Start then? This fixes the problem.

#! /bin/sh
### BEGIN INIT INFO
# Provides: mountdevsubfs
# Required-Start: mountkernfs udev

This seems to much simpler fix than fixing the insserv and doens't require revert later when it's actually fixed.

Or if udev package required fix is required there's the keyword X-Start-Before (if it's honored) which could placed in /etc/init.d/udev to make it start before mountdevsubfs.

A quick test shows that X-Start-Before seems to work. For testing I removed any udev dependencies from mountdevsubfs and added "X-Start-Before:mountdevsubfs" to /etc/init.d/udev, removed /etc/rcS.d/S05udev.sh and ran "chkconfig udev S" and /etc/rcS.d/S05udev appeared.

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: udev
# Required-Start: mountkernfs
# Required-Stop:
# Should-Start:
# X-Start-Before: mountdevsubfs
# Default-Start: S
# Default-Stop:
# Short-Description: Start the udev daemon.
# Description: Mounts the /dev virtual filesystem, starts the udev
# daemon and populates /dev.
### END INIT INFO

For double safety/complexity one could change udev to Required-Start: in /etc/init.d/mountdevsubfs.sh and also add the "X-Start-Before: mountdevsubfs" in /etc/init.d/udev.