diff --git a/debian/changelog b/debian/changelog index a8803db5..20af71b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ livecd-rootfs (2.442) UNRELEASED; urgency=medium comparison prior to aa-series (LP: #1681548) * live-build/ubuntu-cpc/hooks/999-extras.binary: Exit on first failure + [Balint Reczey] + * sync before calling kpartx to let writing to loop devices finish + -- Steve Langasek Thu, 13 Apr 2017 10:38:04 -0700 livecd-rootfs (2.441) zesty; urgency=medium diff --git a/live-build/functions b/live-build/functions index 5abdeea1..313a559b 100644 --- a/live-build/functions +++ b/live-build/functions @@ -13,6 +13,8 @@ apt-get -qqy install dosfstools gdisk clean_loops() { if [ -n "${backing_img}" ]; then + # sync before removing loop to avoid "Device or resource busy" errors + sync kpartx -v -d "${backing_img}" unset backing_img fi