diff options
| author | Bruno Binet <bruno.binet@gmail.com> | 2021-06-24 14:32:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 13:32:01 +0100 |
| commit | 42bbe02c789acfc60c1b9588a2bd9aaec7cc47f2 (patch) | |
| tree | c670a9bb96efbd35fadbfc48b2b57741d0a16696 | |
| parent | f9d44edb72e9a153c997266189c79cb1f96b69f3 (diff) | |
Fix broken imagetool.sh --mount (#529)
| -rwxr-xr-x | imagetool.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/imagetool.sh b/imagetool.sh index adc1ab7..e8467e1 100755 --- a/imagetool.sh +++ b/imagetool.sh @@ -103,10 +103,12 @@ if [ "${UMOUNT}" = "1" ] && [ -z "${MOUNTPOINT}" ]; then fi export NBD_DEV="${NBD_DEV:-/dev/nbd1}" +export MAP_BOOT_DEV=/dev/mapper/nbd1p1 +export MAP_ROOT_DEV=/dev/mapper/nbd1p2 source scripts/qcow2_handling if [ "${MOUNT}" = "1" ]; then - mount_qimage "${MOUNTPOINT}" "${IMAGE}" + mount_qimage "${IMAGE}" "${MOUNTPOINT}" elif [ "${UMOUNT}" = "1" ]; then umount_qimage "${MOUNTPOINT}" fi |
