pv_ops/dom0 kernel has xenfs -> mount it if needed.
--- a/tools/examples/init.d/xenstored.orig 2009-02-26 16:01:57.000000000 +0100
+++ b/tools/examples/init.d/xenstored 2009-02-26 16:03:20.000000000 +0100
@@ -25,6 +25,9 @@
if [ ! -d /proc/xen ]; then
exit 0
fi
+if [ ! -f /proc/xen/capabilities ]; then
+ mount -t xenfs xen /proc/xen
+fi
if ! grep -q "control_d" /proc/xen/capabilities ; then
exit 0
fi
@@ -38,6 +41,7 @@ test -f /etc/sysconfig/xenstored && . /e
start() {
echo -n $"Starting xenstored daemon: "
+ rm -f /var/lib/xenstored/tdb
/usr/sbin/xenstored --pid-file $XENSTORED_PID $XENSTORED_ARGS
RETVAL=$?
test $RETVAL = 0 && echo_success || echo_failure