Commit 91df3db2 authored by Thomas Goirand's avatar Thomas Goirand

* Added a couple of sync calls to make sure we don't have a race condition

    when removing the loopback device using kpartx.
parent c8cfa767
......@@ -412,6 +412,7 @@ cleanup(){
echo "Finished."
}
sync
chroot ${MOUNT_DIR} umount /proc || true
umount ${MOUNT_DIR}
# Run FSCK so that resize can work
......@@ -428,6 +429,7 @@ if [ "${AUTOMATIC_RESIZE}" = "yes" ] ; then
FINAL_IMG_SIZE=`expr '(' $FINAL_FS_BLOCKS + 258 ')' '*' 4 '/' 1024` # some blocks for mbr and multiple block size (4k)
fi
sync
kpartx -d ${AMI_NAME}
rmdir ${MOUNT_DIR}
......
......@@ -19,6 +19,8 @@ openstack-debian-images (1.4) unstable; urgency=medium
* Changed the loging for the list of packages for wheezy and other releases
of Debian (it was selecting the list of package for Wheezy for Stretch and
buster).
* Added a couple of sync calls to make sure we don't have a race condition
when removing the loopback device using kpartx.
-- Thomas Goirand <zigo@debian.org> Wed, 06 May 2015 22:30:46 +0200
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment