]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
flash-image: Remove any other GRUB configuration files in EFI mode
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Jun 2018 21:17:05 +0000 (22:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Jun 2018 21:17:05 +0000 (22:17 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/flash-images

index 014255389eed3587034670fffac25630bffd2035..62b60b156c510f9a86afd6236447f588f14688c8 100644 (file)
@@ -73,11 +73,8 @@ else
  PART_TYPE = L
 endif
 
-GRUB_CFGS = /boot/grub/grub.cfg
-
 ifeq "$(EFI)" "1"
  S_EFI = 204800
- GRUB_CFGS += /boot/efi/EFI/ipfire/grub-efi/grub.cfg
 else
  S_EFI = 0
 endif
@@ -206,14 +203,11 @@ ifeq "$(BOOTLOADER)" "grub"
                        $(MNThdd)/etc/grub.d/
 
        # Create configuration
-       for i in $(GRUB_CFGS); do \
-               mkdir -pv $$(dirname $(MNThdd)$(GRUB_CFG)); \
-               chroot $(MNThdd) grub-mkconfig -o $$i || exit 1; \
-       done
+       mkdir -pv $(MNThdd)/boot/grub
+       chroot $(MNThdd) grub-mkconfig -o /boot/grub/grub.cfg
 
        # Insert the UUID because grub-mkconfig often fails to
        # detect that correctly
-       sed -i $(addprefix $(MNThdd),$(GRUB_CFGS)) \
        sed -i $(MNThdd)/boot/grub/grub.cfg \
                -e "s/root=[A-Za-z0-9\/=-]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"