From 4e78284e4fc0ddb29bb075720a19937cb643653f Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Wed, 23 Mar 2011 09:31:44 +0100 Subject: [PATCH] block.qubes: pass arguments correctly to other scripts --- dom0/restore/block.qubes | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom0/restore/block.qubes b/dom0/restore/block.qubes index 435418a2..4aee7f31 100755 --- a/dom0/restore/block.qubes +++ b/dom0/restore/block.qubes @@ -28,7 +28,7 @@ hexnumber() process() { if ! [ "x""$1" = "xfile" ] ; then - exec /etc/xen/scripts/block "$@" + exec /etc/xen/scripts/block $ORIG_ARGS fi while true ; do dev=$(losetup -f --show $2) @@ -48,6 +48,8 @@ XENBUS_PATH="${XENBUS_PATH:?}" if ! [ "$1" = "add" ] || ! [ -f /var/run/qubes/fast_block_attach ] ; then exec /etc/xen/scripts/block "$@" fi + +ORIG_ARGS="$@" vars=$(xenstore-read "$XENBUS_PATH/type" "$XENBUS_PATH/params") process $vars