From 81b3326a132f1c783603af4f6895436994fcac48 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Mon, 4 Nov 2024 02:38:22 -0600 Subject: [PATCH] UEFI: GRUB probably ain't it, chief I'm thinking maybe I hard-code a Linux command line in my kernel image and place the EFI stubby boi in my ESP as a file named bootx64.efi, because I want it to *work* --- mk/uefi.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mk/uefi.mk b/mk/uefi.mk index 46db4a0..49a3d9b 100644 --- a/mk/uefi.mk +++ b/mk/uefi.mk @@ -1,5 +1,5 @@ PLATFORM_PHONYS := partition kernel -PLATFORM_PKGS := linux-lts grub-efi efibootmgr +PLATFORM_PKGS := linux-lts BOOTFS_PART := 1 ROOTFS_PART := 2 @@ -10,3 +10,12 @@ RUNLEVEL_DEFAULT ?= acpid crond partition: blkcheck $(DOSU) fdisk $(BLKDEV) <<<$$'g\nw\n' $(DOSU) sfdisk $(BLKDEV) <<<$$',1G,C12A7328-F81F-11D2-BA4B-00A0C93EC93B,*\n,,0FC63DAF-8483-4772-8E79-3D69D8477DE4,\n' + +$(MOUNTPOINT)/boot/grub: + $(MAKE) $(ACHROOT) + $(ACHROOTI_CMD)' && grub-install --target=x86_64-efi --efi-directory=/boot' + +$(MOUNTPOINT)/.bootloader-done: $(MOUNTPOINT)/boot/grub + touch $@ + +bootloader: $(MOUNTPOINT)/.bootloader-done