Scriptable custom image for uEFI
#1
Sun, 2016-09-18 11:32
DodoFXP
-
- Offline
- 1 year 6 months ago
- 2016-07-24
Hi,
I was wondering how one would go about creating a custom remix of Alpine that can be installed (sys) onto a USB that boots from uEFI out of the box?
Preferably it would be scripted to be able to reproduce easily in case changes are needed.
My intention is to build a small, proof-of-concept cluster of Minnowboard Turbot boards which needs to boot from USB sticks and needs to work on UEFI.
Cheers,
DodoFXP
You could use the Aports tree to rebuild the kernel image with CONFIG_CMDLINE enabled and the string set to define the root partition & location of the initramfs then create an EFI system partition on the USB stick and copy the kernel image to $ESP/EFI/BOOT/BOOTX64.EFI -- this should boot automatically on UEFI systems.
See http://www.rodsbooks.com/efi-bootloaders/installation.html#alternative-naming & https://www.kernel.org/doc/Documentation/efi-stub.txt for more on this.
EDIT: I have just noticed this page:
https://wiki.alpinelinux.org/wiki/Create_UEFI_boot_USB
I didn't realise Alpine had gummiboot available in the repositories, that method is much simpler.
We are currently working on adding UEFI support to our boot media.
Stay tuned!