Compare commits
2 Commits
openrc-0.1
...
openrc-0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ceb62969a | ||
|
|
d5ecc9d746 |
@@ -1,3 +1,3 @@
|
|||||||
NAME= openrc
|
NAME= openrc
|
||||||
VERSION= 0.10.3
|
VERSION= 0.10.4
|
||||||
PKG= ${NAME}-${VERSION}
|
PKG= ${NAME}-${VERSION}
|
||||||
|
|||||||
@@ -37,14 +37,23 @@ fi
|
|||||||
|
|
||||||
# /run is a new directory for storing volatile runtime data.
|
# /run is a new directory for storing volatile runtime data.
|
||||||
# Read more about /run at https://lwn.net/Articles/436012
|
# Read more about /run at https://lwn.net/Articles/436012
|
||||||
|
sys="$(rc --sys)"
|
||||||
|
|
||||||
if [ ! -d /run ]; then
|
if [ ! -d /run ]; then
|
||||||
eerror "The /run directory does not exist. Unable to continue."
|
if [ "$sys" = VSERVER ]; then
|
||||||
return 1
|
if [ -e /run ]; then
|
||||||
|
rm -rf /run
|
||||||
|
fi
|
||||||
|
mkdir /run
|
||||||
|
else
|
||||||
|
eerror "The /run directory does not exist. Unable to continue."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if mountinfo -q /run; then
|
if [ "$sys" = VSERVER ]; then
|
||||||
einfo "/run is already mounted, skipping"
|
rm -rf /run/*
|
||||||
else
|
elif ! mountinfo -q /run; then
|
||||||
ebegin "Mounting /run"
|
ebegin "Mounting /run"
|
||||||
rc=0
|
rc=0
|
||||||
if ! fstabinfo --mount /run; then
|
if ! fstabinfo --mount /run; then
|
||||||
|
|||||||
Reference in New Issue
Block a user