From 83c09aabbe413fc282d780241d67c68583bd2191 Mon Sep 17 00:00:00 2001 From: John Chittum Date: Thu, 10 Feb 2022 14:54:04 -0600 Subject: [PATCH] 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. --- live-build/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/live-build/functions b/live-build/functions index 6306405d..d2dd2d2e 100644 --- a/live-build/functions +++ b/live-build/functions @@ -165,6 +165,8 @@ umount_partition() { teardown_mountpoint $mountpoint umount -R $mountpoint udevadm settle + # workaround for LP: 1960537 + sleep 30 if [ -n "${rootfs_dev_mapper}" -a -b "${rootfs_dev_mapper}" ]; then # buildd's don't have /etc/mtab symlinked