From: Keir Fraser Date: Fri, 25 Jan 2008 13:22:52 +0000 (+0000) Subject: Fix losetup -r flag when we specify 'w!' for the disk mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14409 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c98471a3aab9a2cbe6d183de79d438a8c80c8e5c;p=xen.git Fix losetup -r flag when we specify 'w!' for the disk mode. From: Zhigang Wang Signed-off-by: Keir Fraser --- diff --git a/tools/examples/block b/tools/examples/block index f946784f03..56c26789a5 100644 --- a/tools/examples/block +++ b/tools/examples/block @@ -329,7 +329,7 @@ mount it read-write in a guest domain." if LANG=C losetup -h 2>&1 | grep read-only >/dev/null then - roflag="-$mode"; roflag="${roflag#-w}" + roflag="-$mode"; roflag="${roflag#-w}"; roflag="${roflag#-!}" else roflag='' fi