openSUSE Tumbleweed repository with systemd-boot

https://en.opensuse.org/Systemd-boot

This is a fork of systemd on openSUSE Tumbleweed for x86_64 with systemd-boot instead of grub

This repo contains everything needed to utilize systemd-boot and snapshot support.
-------------------------------------------
To install it, do the following:

By default a fresh installation with yast will suggest creating an EFI partition with 500MB and install grub. That's just fine and will do.
--Click "Show more" on the right side--

Edit LOADER_TYPE in /etc/sysconfig/bootloader to an empty value to make sure other scripts don't get into the way later.

Install systemd-boot. Note that it will overwrite /EFI/BOOT/BOOTX64.EFI on the efi partition. Keep that in mind if the system contains other installations as well.
# bootctl --make-machine-id-directory=yes install

If secure boot is enabled, shim needs to be installed manually. As shim only reads grub.efi, systemd-boot needs to be renamed to pretend it's grub:

# mokutil --sb-state SecureBoot enabled
# mv /boot/efi/EFI/systemd/systemd-bootx64.efi /boot/efi/EFI/systemd/grub.efi
# cp /usr/share/efi/x86_64/shim.efi /boot/efi/EFI/systemd/systemd-bootx64.efi
# cp /usr/share/efi/x86_64/MokManager.efi /boot/efi/EFI/systemd/

The easiest way to get kernel and initrd registed with systemd is to install file triggers scripts for kernel-install. RPM will call the triggers when a kernel gets installed or upgraded.

# zypper ar https://download.opensuse.org/repositories/home:/Tobi_Peter:/tumbleweed:/systemd-boot/openSUSE_Tumbleweed/home:Tobi_Peter:tumbleweed:systemd-boot.repo
# zypper dup --allow-vendor-change --from home_Tobi_Peter_tumbleweed_systemd-boot

Reboot & enjoy
-------------------------------------------
As of March 2023 the following packages require modifications to work with systemd-boot:

systemd: hooks to add snapshot awareness to kernel-install
dracut: avoid overwriting existing initrds, do not delete initrds on removal in kernel-install script

Name Changed
Comments 0
openSUSE Build Service is sponsored by