Use the correct path for the loop device.

always-enable-i386
Steve Langasek 2 years ago
parent bdc2037bd1
commit 6b40317404

6
debian/changelog vendored

@ -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 livecd-rootfs (2.830) lunar; urgency=medium
* Call losetup -d properly. * Call losetup -d properly.

@ -70,7 +70,7 @@ mount_image() {
fi fi
# Find the rootfs location # 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 if [ ! -b "${rootfs_dev_mapper}" ]; then
echo "${rootfs_dev_mapper} is not a block device"; echo "${rootfs_dev_mapper} is not a block device";
exit 1 exit 1

Loading…
Cancel
Save