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:
		
							parent
							
								
									63dda4de34
								
							
						
					
					
						commit
						ae52e1829a
					
				| @ -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() { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski