Previously we were mounting the same image twice, which may produce
the same device number.
Thanks to Mateusz Pavlic for reporting the problem.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
WVPASS umount "$tmpmnt1"
# Mount twice, so we'll have the same content with different devices.
+WVPASS cp -pP testfs.img testfs2.img
WVPASS mount -oro,loop testfs.img "$tmpmnt1"
-WVPASS mount -oro,loop testfs.img "$tmpmnt2"
+WVPASS mount -oro,loop testfs2.img "$tmpmnt2"
# Test default behavior: --check-device.
WVPASS mount -oro --bind "$tmpmnt1" "$srcmnt"