From bc80789cb0e6e8f64849d4894206687a4edb5c4a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 26 Feb 2010 10:05:42 +0100 Subject: [PATCH] OpenRC: added a patch to mount xenfs very early for dom0. --HG-- extra : convert_revision : a174b429866504b1f6967ae4dc372703f35621c0 --- .../init.sh_mount_xenfs_very_early.patch | 17 +++++++++++++++++ srcpkgs/OpenRC/template | 1 + 2 files changed, 18 insertions(+) create mode 100644 srcpkgs/OpenRC/patches/init.sh_mount_xenfs_very_early.patch diff --git a/srcpkgs/OpenRC/patches/init.sh_mount_xenfs_very_early.patch b/srcpkgs/OpenRC/patches/init.sh_mount_xenfs_very_early.patch new file mode 100644 index 00000000000..97aeb8056b0 --- /dev/null +++ b/srcpkgs/OpenRC/patches/init.sh_mount_xenfs_very_early.patch @@ -0,0 +1,17 @@ +--- sh/init.sh.Linux.in.orig 2010-02-26 09:13:26.682795699 +0100 ++++ sh/init.sh.Linux.in 2010-02-26 09:20:18.411807297 +0100 +@@ -70,4 +70,14 @@ if $mountproc; then + eend $? + 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 diff --git a/srcpkgs/OpenRC/template b/srcpkgs/OpenRC/template index b1f3bca0f04..c6c1b12d228 100644 --- a/srcpkgs/OpenRC/template +++ b/srcpkgs/OpenRC/template @@ -1,6 +1,7 @@ # Template file for 'OpenRC' pkgname=OpenRC version=0.6.0 +revision=1 wrksrc=openrc-${version} distfiles="http://roy.marples.name/downloads/openrc/openrc-$version.tar.bz2" build_style=gnu_makefile