From c0d83ef84b701805e6bb3a27447975ec0badb346 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 29 Sep 2011 13:56:29 +0200 Subject: [PATCH] dom0+vm: make sure that block backend module is loaded when needed (#226) --- common/block_add_change | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/block_add_change b/common/block_add_change index f2f3a48..a9f7e06 100755 --- a/common/block_add_change +++ b/common/block_add_change @@ -27,3 +27,6 @@ if [ "$ID_TYPE" = "cd" ]; then MODE=r fi xenstore-write "$XS_KEY/desc" "$DESC" "$XS_KEY/size" "$SIZE" "$XS_KEY/mode" "$MODE" + +# Make sure that block backend is loaded +modprobe xen-blkback 2> /dev/null || modprobe blkbk