Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a command line option to install systemd-boot rather than grub2 on x86_64 and arm64 #4368

Merged
merged 9 commits into from
Mar 10, 2023

Commits on Mar 9, 2023

  1. bootloader/base.py drop stage2 requirement

    systemd-boot places all the files need for boot
    on the ESP, removing the need for a dedicated stage2
    boot partition to hold the initrd/etc. So, lets add
    an option to skip the stage2 validation.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    17fd46e View commit details
    Browse the repository at this point in the history
  2. storage: Add a systemd class for systemd-boot

    Systemd-boot is a lightweight boot selector that only
    runs in EFI enviroments. Compared to shim+grub its incredibly
    simple as it utilizes efi boot services.
    
    Lets add a subclass that anaconda can use to install it rather
    than grub.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    c4b31b6 View commit details
    Browse the repository at this point in the history
  3. Hoist firmware bit size check

    EFIGRUB is checking fw_platform_size to choose
    which grub, 32 or 64-bit, needs to be installed.
    
    Lets hoist that check because systemd-boot will use
    it to verify that the platform firmware is 64-bits.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    e069f2a View commit details
    Browse the repository at this point in the history
  4. Add EFISYSTEMD class and enable aarch64

    Now that we have a systemd bootloader class lets add
    an efi class that can call it to install the bootloader.
    
    Then create Aarch64EFISystemBoot class that can utilize it.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    d8f0384 View commit details
    Browse the repository at this point in the history
  5. Add the grub packages removed from comps to grub installs

    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    1891b0f View commit details
    Browse the repository at this point in the history
  6. add x86 systemd-boot option

    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    30eb96c View commit details
    Browse the repository at this point in the history
  7. Add kickstart/command line control to enable systemd-boot

    Now, that we have all the infrastructure in place, lets
    add and document a 'inst.systemd' option that can be used
    on the boot commadline or placed in kickstart files.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    73486e9 View commit details
    Browse the repository at this point in the history
  8. release-notes: Document that its possible to install with systemd-boot

    Place a release note for the next verison of anaconda which notes that
    it is now possible given the right set of packages/etc to install
    a system utilizing systemd-boot.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    d05eb78 View commit details
    Browse the repository at this point in the history
  9. CONTRIBUTING: Add note about systemd-boot

    The systemd-boot install feature is for the moment largly
    expermental, but adding the ability to create a clean install
    without grub drippings is important for testing.
    
    Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
    jlintonarm authored and poncovka committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    a9e0559 View commit details
    Browse the repository at this point in the history