]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
flash-images: There is no need to for the mount check any more
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 17:36:10 +0000 (17:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 9 Jul 2024 17:36:10 +0000 (17:36 +0000)
We always start with a fresh mount namespace, so there cannot be
anything left.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/flash-images

index da898db0c69dce92e4ab5b3d3bdfeb83506fdae9..40c65cfffd2a40c0bd5ad19c80561364097390fa 100644 (file)
@@ -101,9 +101,6 @@ SFDISK_EFI  = $(shell echo $$(( $(S_OFFSET) + $(S_BOOT) ))),$(S_EFI),U\n
 SFDISK_ROOT = $(shell echo $$(( $(S_OFFSET) + $(S_BOOT) + $(S_EFI) ))),$(S_ROOT),L\n
 
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
-       # Stop if $(MNThdd) is still mounted
-       mountpoint $(MNThdd) && exit 1 || exit 0
-
        rm -rf $(IMG) $(MNThdd) && mkdir -p $(MNThdd)
 
        # Allocate image on disk