]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
flash-images: add sleep 1 after umount the images
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Oct 2024 19:37:19 +0000 (21:37 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 16 Oct 2024 19:37:19 +0000 (21:37 +0200)
sometime zerofree will not able to write without this delay.
I have no idea why?

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/flash-images

index 6b762b1549336462c5c904380b3b32845e062eae..695eb4b6b5541c0664f1d716e46d30d31bd26d10 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2024  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # 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)