- remove grub
apt purge --allow-remove-essential grub2-common grub-pc-bin grub-pc grub-gfxpayload-lists grub-efi-amd64-bin grub-efi-amd64-signed grub-common os-prober shim-signed libfreetype6
apt-get autoremove --purge
rm -rf /boot/grub/
rm -rf /boot/efi/EFI/ubuntu
- make sure it's not installed back
- install systemd-boot
apt install systemd-boot systemd-ukify
create /etc/kernel/cmdline
with the wanted kernel command line (check /proc/cmdline
for inspiration)
create /etc/kernel/postinst.d/zz-update-systemd-boot
(see below, and make sure it's 0755 mode) and run it
- reinstall the kernel package so it triggers kernel-install & friends
- reboot
I am using systemd-boot and found your gist, just updated my setup to use the kernel install.conf setup
thanks for this
could you help with setting up a custom entry for install.conf
i use a recovery option with the old script that creates a Recovery boot option that boots the previous kernel into a login prompt no ui or x-server
this is done simply by add a 3 to last option for kernel options
how could i create multiple kernel options to create a custom loader entry for systemd-boot?
thanks
ref kernel options