Revision 55d2fc47 snf-image-host/snf-image-update-helper.in
b/snf-image-host/snf-image-update-helper.in | ||
---|---|---|
37 | 37 |
echo "done" |
38 | 38 |
|
39 | 39 |
echo "Creating partitions..." |
40 |
blockdev=$(losetup -sf $helper_img)
|
|
41 |
add_cleanup losetup -d "$blockdev"
|
|
40 |
blockdev=$("$LOSETUP" -sf $helper_img)
|
|
41 |
add_cleanup "$LOSETUP" -d "$blockdev"
|
|
42 | 42 |
|
43 | 43 |
sleep 1 # sometimes losetup returns and the device is still busy.. |
44 | 44 |
|
Also available in: Unified diff