Skip to content
Snippets Groups Projects
  1. Aug 12, 2021
  2. Jul 08, 2021
  3. Jul 07, 2021
  4. Jul 05, 2021
  5. Apr 11, 2021
  6. Apr 09, 2021
  7. Apr 06, 2021
  8. Apr 05, 2021
    • Morten Linderud's avatar
      [mkinitcpio] Create UEFI executables · 9cc35234
      Morten Linderud authored
      Implement UEFI executable generation in mkinitcpio by utilizing UEFI
      stubs provided by systemd/gummiboot.
      
      This allows us to create a unified boot image we can boot from UEFI
      with. These are practical for secure boot as we can sign initramfs,
      kernel cmdline and the kernel all at once. By utilizing the
      BOOT_LOADER_SPECIFICATION we can also drop new images into the correct
      patch and have systemd-boot/gummiboot pick up the images.
      
      The code does several things and does a fair amount of guessing to
      figure out all the inputs needed.
      
      We use `/etc/kernel/cmdline` to localize the kernel cmdline options we
      want for the image. This is inherited from the `kernel-install` hook
      system which might double as some form of standard.
      
      We also do a dance to get the correct kernel image. We do a lookup into
      /lib/modules and /boot for both versioned and unversioned kernels
      (mainly Arch Linux).
      
      There is an attempt to support both 32bit and 64bit lookup paths for the
      stub images, but only 64bit is tested.
      
      Gummiboot is also not tested.
      
      https://www.freedesktop.org/software/systemd/man/kernel-install.html
      
      https://systemd.io/BOOT_LOADER_SPECIFICATION/#type-2-efi-unified-kernel-images
      
      
      
      Signed-off-by: default avatarMorten Linderud <morten@linderud.pw>
      Verified
      9cc35234
  9. Apr 02, 2021
  10. Mar 19, 2021
  11. Feb 17, 2021
  12. Feb 12, 2021
  13. Jan 30, 2021
  14. Jan 08, 2021
  15. Jan 07, 2021
  16. Jan 05, 2021
  17. Oct 30, 2020
  18. Oct 27, 2020
Loading