summaryrefslogtreecommitdiffstats
path: root/tools/daisy-img-modify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/daisy-img-modify.sh')
-rwxr-xr-xtools/daisy-img-modify.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/daisy-img-modify.sh b/tools/daisy-img-modify.sh
index 90910a14..aad29949 100755
--- a/tools/daisy-img-modify.sh
+++ b/tools/daisy-img-modify.sh
@@ -157,6 +157,7 @@ resize() {
# resize the image
qemu-img resize $raw_imgfile ${img_size}G
qemu-img info $raw_imgfile
+ losetup --find --show $raw_imgfile
loopdevice=$(kpartx -l $raw_imgfile | head -1 | cut -f1 -d ' ')
kpartx -av $raw_imgfile
sleep 2
@@ -170,9 +171,8 @@ resize() {
# mount image
setup() {
mkdir -p $mountdir
-
+ losetup --find --show $raw_imgfile
loopdevice=$(kpartx -l $raw_imgfile | head -1 | cut -f1 -d ' ')
-
kpartx -av $raw_imgfile
sleep 2
dmsetup ls