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*
This commit is contained in:
parent
080f25b9ef
commit
81b3326a13
1 changed files with 10 additions and 1 deletions
11
mk/uefi.mk
11
mk/uefi.mk
|
|
@ -1,5 +1,5 @@
|
||||||
PLATFORM_PHONYS := partition kernel
|
PLATFORM_PHONYS := partition kernel
|
||||||
PLATFORM_PKGS := linux-lts grub-efi efibootmgr
|
PLATFORM_PKGS := linux-lts
|
||||||
|
|
||||||
BOOTFS_PART := 1
|
BOOTFS_PART := 1
|
||||||
ROOTFS_PART := 2
|
ROOTFS_PART := 2
|
||||||
|
|
@ -10,3 +10,12 @@ RUNLEVEL_DEFAULT ?= acpid crond
|
||||||
partition: blkcheck
|
partition: blkcheck
|
||||||
$(DOSU) fdisk $(BLKDEV) <<<$$'g\nw\n'
|
$(DOSU) fdisk $(BLKDEV) <<<$$'g\nw\n'
|
||||||
$(DOSU) sfdisk $(BLKDEV) <<<$$',1G,C12A7328-F81F-11D2-BA4B-00A0C93EC93B,*\n,,0FC63DAF-8483-4772-8E79-3D69D8477DE4,\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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue