aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xenstored.initd
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2012-04-30 13:29:39 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-30 12:46:34 +0000
commit871195d63ce0f2681006c25a3a669906fce92302 (patch)
treedac0835e1a26ce253b513947567477b1aa8d651c /main/xen/xenstored.initd
parentbbef3c22007343e00573f621d8069caf5e320f8f (diff)
downloadaports-871195d63ce0f2681006c25a3a669906fce92302.tar.bz2
aports-871195d63ce0f2681006c25a3a669906fce92302.tar.xz
main/xen: fix xenstored init script
Mount /proc/xen on init if it's not mounted. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Diffstat (limited to 'main/xen/xenstored.initd')
-rw-r--r--main/xen/xenstored.initd7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/xen/xenstored.initd b/main/xen/xenstored.initd
index bbb4efb0ce..f2c22cc705 100644
--- a/main/xen/xenstored.initd
+++ b/main/xen/xenstored.initd
@@ -23,6 +23,13 @@ wait_xenstored_up() {
start() {
local _traceopt=
ebegin "Starting xenstored daemon"
+
+ if ! test -f /proc/xen/capabilities && \
+ ! grep '^xenfs ' /proc/mounts >/dev/null;
+ then
+ mount -t xenfs xenfs /proc/xen
+ fi
+
modprobe xen-evtchn 2>/dev/null
modprobe xen-gntdev 2>/dev/null
modprobe evtchn 2>/dev/null