From 871195d63ce0f2681006c25a3a669906fce92302 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Mon, 30 Apr 2012 13:29:39 +0100 Subject: main/xen: fix xenstored init script Mount /proc/xen on init if it's not mounted. Signed-off-by: Roger Pau Monne --- main/xen/xenstored.initd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main/xen/xenstored.initd') diff --git a/main/xen/xenstored.initd b/main/xen/xenstored.initd index bbb4efb0c..f2c22cc70 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 -- cgit v1.2.3