mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
flash-images: Only install grub for EFI on aarch64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user