From 78f1bb1de5972bcb4f8db873d0271352d1dbb506 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 16 Oct 2024 21:37:19 +0200 Subject: [PATCH] flash-images: add sleep 1 after umount the images sometime zerofree will not able to write without this delay. I have no idea why? Signed-off-by: Arne Fitzenreiter --- lfs/flash-images | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lfs/flash-images b/lfs/flash-images index 6b762b154..695eb4b6b 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2022 IPFire Team # +# Copyright (C) 2007-2024 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -225,7 +225,10 @@ endif umount $(MNThdd)/boot umount $(MNThdd) - # zerofree the ext2 images to get better compression + # sometime zerofree will fail without this + sleep 1 + + # zerofree the ext4 images to get better compression ifneq "$(PART_TYPE)" "c" zerofree $(PART_BOOT) -fsck.ext2 -f -y $(PART_BOOT) -- 2.39.5