From d1ba15fef305aec72997b3b09f463fe7aace7215 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 5 Sep 2012 10:29:49 -0700 Subject: Better way to load xen modules, adapted from ubuntu's hw-detect package --- scripts/init-top/xen | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/init-top/xen diff --git a/scripts/init-top/xen b/scripts/init-top/xen new file mode 100755 index 0000000..d403247 --- /dev/null +++ b/scripts/init-top/xen @@ -0,0 +1,10 @@ +#!/bin/sh + +. /scripts/functions + +if [ "$(cat /sys/hypervisor/type 2>/dev/null || true)" = xen ] && \ + [ ! -d /sys/bus/xen ]; then + log_begin_msg "Detected Xen hypervisor, loading xenbus_probe_frontend" + modprobe -q xenbus_probe_frontend + log_end_msg +fi -- cgit v1.2.3