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

ubuntu/cosmic
Steve Langasek 7 years ago
commit 8fddc6b469

7
debian/changelog vendored

@ -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 livecd-rootfs (2.508) bionic; urgency=medium
* Use Ubuntu-specific branches when seeding snaps, as required in * Use Ubuntu-specific branches when seeding snaps, as required in

@ -56,7 +56,7 @@ mount_image() {
# Find the loop device # Find the loop device
loop_p1="$(echo -e ${kpartx_mapping} | head -n1 | awk '{print$3}')" 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 if [ ! -b ${loop_device} ]; then
echo "unable to find loop device for ${backing_img}" echo "unable to find loop device for ${backing_img}"
exit 1 exit 1

Loading…
Cancel
Save