You are not logged in.

#1 2017-04-05 06:09:27

allannk
Member
Registered: 2017-04-05
Posts: 1

Choosing a bootloader for remastered install image

Hi bbs - I hope I hit the right forum, please let me know otherwise.

I am trying to make a custom installer image, and while I am no longer a new starter, I'm still not entirely sure how bootloading works in detail.

Basically, I'm trying to do an image from scratch, having build the root file system with the packages I need, as well as mkinitcpio and linux.

Now I'd like to install systemd-boot somehow, but I don't really know where to start, as bootctl expects an EFI partition, and I am only working from a chroot. (I have successfully generated vmlinuz-linux and initramfs-linux.img)

Any pointers?

Best, Allan

Offline

#2 2017-04-05 20:57:55

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Choosing a bootloader for remastered install image

All you need is the kernel & initrd and the systemd-boot .efi loader — the latter can be extracted from the Arch systemd package [1] and placed at $ESP/EFI/BOOT/BOOTX64.EFI — plus $ESP/loader/entries/arch.conf

Once this is done, UEFI firmware will find BOOTX64.EFI and boot that automatically wink

[1] usr/lib/systemd/boot/efi/systemd-bootx64.efi

Offline

Board footer

Powered by FluxBB