block.qubes: pass arguments correctly to other scripts
This commit is contained in:
parent
105486135b
commit
4e78284e4f
@ -28,7 +28,7 @@ hexnumber()
|
|||||||
process()
|
process()
|
||||||
{
|
{
|
||||||
if ! [ "x""$1" = "xfile" ] ; then
|
if ! [ "x""$1" = "xfile" ] ; then
|
||||||
exec /etc/xen/scripts/block "$@"
|
exec /etc/xen/scripts/block $ORIG_ARGS
|
||||||
fi
|
fi
|
||||||
while true ; do
|
while true ; do
|
||||||
dev=$(losetup -f --show $2)
|
dev=$(losetup -f --show $2)
|
||||||
@ -49,6 +49,8 @@ if ! [ "$1" = "add" ] || ! [ -f /var/run/qubes/fast_block_attach ] ; then
|
|||||||
exec /etc/xen/scripts/block "$@"
|
exec /etc/xen/scripts/block "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ORIG_ARGS="$@"
|
||||||
|
|
||||||
vars=$(xenstore-read "$XENBUS_PATH/type" "$XENBUS_PATH/params")
|
vars=$(xenstore-read "$XENBUS_PATH/type" "$XENBUS_PATH/params")
|
||||||
process $vars
|
process $vars
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user