mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-19 06:41:33 +00:00
Call losetup -d properly.
This commit is contained in:
parent
fa29b73130
commit
a130ee17c3
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (2.830) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Call losetup -d properly.
|
||||||
|
|
||||||
|
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 17 Apr 2023 12:22:06 -0700
|
||||||
|
|
||||||
livecd-rootfs (2.829) lunar; urgency=medium
|
livecd-rootfs (2.829) lunar; urgency=medium
|
||||||
|
|
||||||
[ Loïc Minier ]
|
[ Loïc Minier ]
|
||||||
|
@ -12,13 +12,13 @@ loop_raw=
|
|||||||
backing_img=
|
backing_img=
|
||||||
|
|
||||||
clean_loops() {
|
clean_loops() {
|
||||||
if [ -n "${backing_img}" ]; then
|
if [ -n "${loop_device}" ]; then
|
||||||
# If something just finished writing to the device or a
|
# If something just finished writing to the device or a
|
||||||
# partition (e.g. the zerofree in umount_partition) udev might
|
# partition (e.g. the zerofree in umount_partition) udev might
|
||||||
# still be processing the device.
|
# still be processing the device.
|
||||||
udevadm settle
|
udevadm settle
|
||||||
sync
|
sync
|
||||||
losetup -v -d "${backing_img}"
|
losetup -v -d "${loop_device}"
|
||||||
unset backing_img
|
unset backing_img
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user