mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-11 19:31:18 +00:00
Merge lp:~vorlon/livecd-rootfs/many-loops
This commit is contained in:
commit
8fddc6b469
7
debian/changelog
vendored
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
|
||||
|
||||
* Use Ubuntu-specific branches when seeding snaps, as required in
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user