Skip to content

Commit

Permalink
Fix broken imagetool.sh --mount (RPi-Distro#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbinet committed Jun 24, 2021
1 parent f9d44ed commit 42bbe02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imagetool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42bbe02

Please sign in to comment.