[neon/neon/livecd-rootfs/Neon/release] live-build: Add sleep to workaround e2fsck errors

Brian Murray null at kde.org
Fri Feb 25 11:48:33 GMT 2022


Git commit 0fbafa9dbe6218e207604d9e7971a3bebbc717c9 by Brian Murray, on behalf of John Chittum.
Committed on 10/02/2022 at 23:39.
Pushed by jriddell into branch 'Neon/release'.

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.

M  +2    -0    live-build/functions

https://invent.kde.org/neon/neon/livecd-rootfs/commit/0fbafa9dbe6218e207604d9e7971a3bebbc717c9

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



More information about the Neon-commits mailing list