Mount xenfs early so OpenRC can detect it.
This commit is contained in:
parent
5c52e5beb5
commit
59b08643f1
@ -70,4 +70,14 @@ if $mountproc; then
|
|||||||
eend $?
|
eend $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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.
|
||||||
|
if grep -Eq "[[:space:]]+xenfs$" /proc/filesystems; then
|
||||||
|
ebegin "Mounting xenfs"
|
||||||
|
if ! fstabinfo --mount /proc/xen; then
|
||||||
|
mount -n -t xenfs xenfs /proc/xen -o nosuid,nodev,noexec
|
||||||
|
fi
|
||||||
|
eend $?
|
||||||
|
fi
|
||||||
|
|
||||||
. "$RC_LIBEXECDIR"/sh/init-common-post.sh
|
. "$RC_LIBEXECDIR"/sh/init-common-post.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user