diff --git a/tools/hotplug/Linux/block b/tools/hotplug/Linux/block index fb9df6f357..3b1a52915a 100644 --- a/tools/hotplug/Linux/block +++ b/tools/hotplug/Linux/block @@ -280,7 +280,7 @@ mount it read-write in a guest domain." fi shared_list=$(losetup -a | - sed -n -e "s@^\([^:]\+\)\(:[[:blank:]]\[${dev}\]:${inode}[[:blank:]](.*)\)@\1@p" ) + sed -n -e "s@^\([^:]\+\)\(:[[:blank:]]\[0*${dev}\]:${inode}[[:blank:]](.*)\)@\1@p" ) for dev in $shared_list do if [ -n "$dev" ]