mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
flash-images: move sleep 1 to a better place
kpartx trigger the automount feature of some desktop environments which result in a mounted filesystem if it was created to fast after kpartx. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -112,6 +112,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
|
|
||||||
kpartx -v -a $(DEVICE)
|
kpartx -v -a $(DEVICE)
|
||||||
|
|
||||||
|
# kpartx trigger a automount on some desktop enviroments
|
||||||
|
# this leads in failing zerofree after build and umount the image
|
||||||
|
# with the sleep 1 prevent this because the image has no fs yet.
|
||||||
|
sleep 1
|
||||||
|
|
||||||
# Format them
|
# Format them
|
||||||
ifeq "$(PART_TYPE)" "c"
|
ifeq "$(PART_TYPE)" "c"
|
||||||
mkfs.vfat $(PART_BOOT)
|
mkfs.vfat $(PART_BOOT)
|
||||||
@@ -225,9 +230,6 @@ endif
|
|||||||
umount $(MNThdd)/boot
|
umount $(MNThdd)/boot
|
||||||
umount $(MNThdd)
|
umount $(MNThdd)
|
||||||
|
|
||||||
# sometime zerofree will fail without this
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
# zerofree the ext4 images to get better compression
|
# zerofree the ext4 images to get better compression
|
||||||
ifneq "$(PART_TYPE)" "c"
|
ifneq "$(PART_TYPE)" "c"
|
||||||
zerofree $(PART_BOOT)
|
zerofree $(PART_BOOT)
|
||||||
|
|||||||
Reference in New Issue
Block a user