dom0+vm: make sure that block backend module is loaded when needed (#226)

This commit is contained in:
Marek Marczykowski 2011-09-29 13:56:29 +02:00
parent e3993ca5f9
commit 960b02e8ed

View File

@ -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