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

Collapse All | Expand All

(-)a/sh/init.sh.Linux.in (-5 / +14 lines)
Lines 37-50 fi Link Here
37
37
38
# /run is a new directory for storing volatile runtime data.
38
# /run is a new directory for storing volatile runtime data.
39
# Read more about /run at https://lwn.net/Articles/436012
39
# Read more about /run at https://lwn.net/Articles/436012
40
sys="$(rc --sys)"
41
40
if [ ! -d /run ]; then
42
if [ ! -d /run ]; then
41
	eerror "The /run directory does not exist. Unable to continue."
43
	if [ "$sys" = "vserver" ]; then
42
	return 1
44
		if [ -e /run ]; then
45
		rm -rf /run
46
		fi
47
		mkdir /run
48
	else
49
		eerror "The /run directory does not exist. Unable to continue."
50
		return 1
51
	fi
43
fi
52
fi
44
53
45
if mountinfo -q /run; then
54
if [ "$sys" = "vserver" ]; then
46
	einfo "/run is already mounted, skipping"
55
	rm -rf /run/*
47
else
56
elif ! mountinfo -q /run; then
48
	ebegin "Mounting /run"
57
	ebegin "Mounting /run"
49
	rc=0
58
	rc=0
50
	if ! fstabinfo --mount /run; then
59
	if ! fstabinfo --mount /run; then

Return to bug 423739