Merge lp:~vorlon/livecd-rootfs/many-loops

This commit is contained in:
Steve Langasek 2018-03-06 10:30:25 +01:00
commit 8fddc6b469
2 changed files with 8 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.509) UNRELEASED; urgency=medium
* Properly handle loop device names when there are > 10 devices on the
system.
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 06 Mar 2018 10:30:02 +0100
livecd-rootfs (2.508) bionic; urgency=medium
* Use Ubuntu-specific branches when seeding snaps, as required in

View File

@ -56,7 +56,7 @@ mount_image() {
# Find the loop device
loop_p1="$(echo -e ${kpartx_mapping} | head -n1 | awk '{print$3}')"
loop_device="/dev/loop$(echo ${loop_p1} | cut -b5)"
loop_device="/dev/${loop_p1%p[0-9]*}"
if [ ! -b ${loop_device} ]; then
echo "unable to find loop device for ${backing_img}"
exit 1