Revert "Mount /run as early as possible"
This reverts commit 5ed4d084d9
.
/run needs to be mounted after /proc.
This commit is contained in:
parent
2d180551ef
commit
e14e78db16
@ -5,24 +5,6 @@
|
|||||||
: ${CONSOLE:=/dev/console}
|
: ${CONSOLE:=/dev/console}
|
||||||
: ${RC_LIBEXECDIR:=@LIBEXECDIR@}
|
: ${RC_LIBEXECDIR:=@LIBEXECDIR@}
|
||||||
|
|
||||||
# Mount tmpfs on /run when directory exists.
|
|
||||||
# /run is a new directory for storing volatile runtime data.
|
|
||||||
# Read more about /run at https://lwn.net/Articles/436012
|
|
||||||
if [ -d /run ]; then
|
|
||||||
if mountinfo -q /run; then
|
|
||||||
einfo "/run is already mounted, skipping"
|
|
||||||
else
|
|
||||||
ebegin "Mounting /run"
|
|
||||||
if ! fstabinfo --mount /run; then
|
|
||||||
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
|
|
||||||
fi
|
|
||||||
eend $?
|
|
||||||
fi
|
|
||||||
checkpath -d -m 0775 -o root:uucp /run/lock
|
|
||||||
elif [ -e /run ]; then
|
|
||||||
einfo "Unable to mount /run since it is not a directory"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e "$RC_LIBEXECDIR"/console/unicode ]; then
|
if [ -e "$RC_LIBEXECDIR"/console/unicode ]; then
|
||||||
termencoding="%G"
|
termencoding="%G"
|
||||||
kmode="-u"
|
kmode="-u"
|
||||||
|
@ -91,6 +91,24 @@ if $mountproc; then
|
|||||||
eend $?
|
eend $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Mount tmpfs on /run when directory exists.
|
||||||
|
# /run is a new directory for storing volatile runtime data.
|
||||||
|
# Read more about /run at https://lwn.net/Articles/436012
|
||||||
|
if [ -d /run ]; then
|
||||||
|
if mountinfo -q /run; then
|
||||||
|
einfo "/run is already mounted, skipping"
|
||||||
|
else
|
||||||
|
ebegin "Mounting /run"
|
||||||
|
if ! fstabinfo --mount /run; then
|
||||||
|
mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
|
||||||
|
fi
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
checkpath -d -m 0775 -o root:uucp /run/lock
|
||||||
|
elif [ -e /run ]; then
|
||||||
|
einfo "Unable to mount /run since it is not a directory"
|
||||||
|
fi
|
||||||
|
|
||||||
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
|
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
|
||||||
# return RC_SYS_XENU and will think that we are in a domU while it's not.
|
# return RC_SYS_XENU and will think that we are in a domU while it's not.
|
||||||
if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
|
if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
|
||||||
|
Loading…
Reference in New Issue
Block a user