flash-images: Only install grub for EFI on aarch64

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-07-12 13:59:07 +01:00
parent 092bc105e4
commit a5c92f50bf

View File

@@ -195,13 +195,15 @@ ifeq "$(BOOTLOADER)" "grub"
sed -i $(MNThdd)/boot/grub/grub.cfg \
-e "s/root=[A-Za-z0-9\/=-]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"
ifeq "$(BUILD_PLATFORM)" "x86"
# Install GRUB
grub-install --force --recheck --no-floppy --target=i386-pc \
--root-directory=$(MNThdd) $(DEVICE)
endif
ifeq "$(EFI)" "1"
# Install GRUB for EFI
grub-install --target=$(BUILD_ARCH)-efi --removable --no-nvram \
grub-install --target=$(GRUB_ARCH)-efi --removable --no-nvram \
--boot-directory=$(MNThdd)/boot --efi-directory=$(MNThdd)/boot/efi
endif