From 0fbafa9dbe6218e207604d9e7971a3bebbc717c9 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 d65c9a40..b43e20e7 100644 --- a/live-build/functions +++ b/live-build/functions @@ -200,6 +200,8 @@ umount_partition() { mount --make-private $mountpoint umount $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