dom0: block-snapshot: enable nullglob to not fail on snapshot/origin remove

Normally should not happen because all domains needs at least one snapshot
device, but in some rare situation can be helpful to cleanup stale devices.
This commit is contained in:
Marek Marczykowski 2011-06-10 18:29:56 +02:00
parent 63dda4de34
commit ae52e1829a

View File

@ -7,6 +7,8 @@
dir=$(dirname "$0") dir=$(dirname "$0")
. "$dir/block-common.sh" . "$dir/block-common.sh"
shopt -s nullglob
HOTPLUG_STORE="/var/run/xen-hotplug/${XENBUS_PATH//\//-}" HOTPLUG_STORE="/var/run/xen-hotplug/${XENBUS_PATH//\//-}"
get_dev() { get_dev() {