Skip to content

Add support for systemd-boot

clayton craft requested to merge systemd-boot into master

This adds support for systemd-boot, by combining it with support for gummiboot (gummiboot turned into systemd-boot...)

deviceinfo changes:

  • ADDED: deviceinfo_efi_arch - set custom EFI arch, in order to support platforms that might have a different arch for EFI than the host CPU (e.g. 32-bit EFI on 64-bit CPUs was popular on some Intel tablets)

  • ADDED: deviceinfo_generate_systemd_boot - triggers installing support for systemd-boot

  • DROP: deviceinfo_generate_gummiboot - Use deviceinfo_generate_systemd_boot to trigger gummiboot support

When run via postmarketos-mkinitfs, the output looks something like:

23:24:51.695129 == Using boot-deploy to finalize/install files ==
==> systemd-boot: adding support
==> systemd-boot: found '/usr/lib/systemd/boot/efi/systemd-bootia32.efi'
==> systemd-boot: found '/usr/lib/systemd/boot/efi/systemd-bootx64.efi'
==> Checking free space at /boot
... OK!
==> Installing: /boot/initramfs
==> Installing: /boot/initramfs-extra
==> Installing: /boot/loader/entries/pmos.conf
==> Installing: /boot/efi/boot/bootia32.efi
==> Installing: /boot/efi/boot/bootx64.efi
23:24:53.727101 boot-deploy completed in: 2.03s

Merge request reports