Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 363971 | Differences between
and this patch

Collapse All | Expand All

(-)a/sh/init.sh.Linux.in (-1 / +18 lines)
Lines 91-96 if $mountproc; then Link Here
91
	eend $?
91
	eend $?
92
fi
92
fi
93
93
94
# Mount tmpfs on /run when directory exists.  /run is used among others
95
# by udev and dracut, but they fall back to /dev/.{udev,initramfs} if
96
# /run doesn't exists.
97
# Read more about /run on LWN.net: https://lwn.net/Articles/436012/
98
if [ -d /run ]; then
99
	if mountinfo -q /run; then
100
		einfo "/run is already mounted, skipping"
101
	else
102
		ebegin "Mounting /run"
103
		if ! fstabinfo --mount /run; then
104
			mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run
105
		fi
106
		eend $?
107
	fi
108
else
109
	einfo "/run is not writable directory, not mounting"
110
fi
111
94
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
112
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
95
# return RC_SYS_XENU and will think that we are in a domU while it's not.
113
# return RC_SYS_XENU and will think that we are in a domU while it's not.
96
if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
114
if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
97
- 

Return to bug 363971