Use the correct path for the loop device.

This commit is contained in:
Steve Langasek 2023-04-17 16:11:50 -07:00
parent bdc2037bd1
commit 6b40317404
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
livecd-rootfs (2.831) UNRELEASED; urgency=medium
* Use the correct path for the loop device.
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 17 Apr 2023 16:11:40 -0700
livecd-rootfs (2.830) lunar; urgency=medium
* Call losetup -d properly.

View File

@ -70,7 +70,7 @@ mount_image() {
fi
# Find the rootfs location
rootfs_dev_mapper="/dev/mapper/${loop_device}p${rootpart}"
rootfs_dev_mapper="${loop_device}p${rootpart}"
if [ ! -b "${rootfs_dev_mapper}" ]; then
echo "${rootfs_dev_mapper} is not a block device";
exit 1