Add sleep to workaround e2fsck errors

LP: 1960537 illustrates an issue where the calls to e2fsck in the
umount_partition call are failing due to an open file handle. At this
time, we are unable to find a root cause, and it's causing many builds
to fail for CPC. Adding a sleep 30 as a workaround as the file handle
releases within  that timeframe. This does not address root cause.
ubuntu/bionic
John Chittum 3 years ago committed by Brian Murray
parent edc13ece4c
commit 83c09aabbe

@ -165,6 +165,8 @@ umount_partition() {
teardown_mountpoint $mountpoint teardown_mountpoint $mountpoint
umount -R $mountpoint umount -R $mountpoint
udevadm settle udevadm settle
# workaround for LP: 1960537
sleep 30
if [ -n "${rootfs_dev_mapper}" -a -b "${rootfs_dev_mapper}" ]; then if [ -n "${rootfs_dev_mapper}" -a -b "${rootfs_dev_mapper}" ]; then
# buildd's don't have /etc/mtab symlinked # buildd's don't have /etc/mtab symlinked

Loading…
Cancel
Save