One more question. Everything went okay after rebooting but I can see there is hardly any space left on /efi
/dev/nvme0n1p1 300M 271M 29M 91% /efi
meaning I either have to resize the partition or stick to only one kernel? How much space will be freed if I run say lz4 or whatever it is that compresses the most?
I donāt think you will get a massive saving by switching compression methods but you could try and see. Of course, the more intense the compression, the longer your bootup time will be.
I would probably just resize the efi partition if that is doable on your machine.
After converting to systemd-boot, in the case of multiboot, in addition to Windows, other installed ones (e.g. Linux distributions) also appear automatically after system boot, or do they have to be configured manually?
According to Arch Wiki, systemd-boot will automatically detect Windows Boot Manager (located in \EFI\Microsoft\Boot\bootmgfw.efi). No OS Prober is needed (like in Grub).
systemd-boot will automatically check at boot time for Windows Boot Manager at the location /EFI/Microsoft/Boot/Bootmgfw.efi, UEFI shell/shellx64.efi and EFI Default Loader/EFI/BOOT/bootx64.efi, as well as specially prepared kernel files found in /EFI/Linux/. When detected, corresponding entries with titles auto-windows, auto-efi-shell and auto-efi-default, respectively, will be generated. These entries do not require manual loader configuration.
Thatās what the Arch Wiki says. However, Iām not sure if you need to copy the Bootmgfw.efi from your windows partition into your EFI partition for it to work. Other more experienced users might be able to answer this.
Hard to say but something got corrupted after resizing cause the system would not boot anymore. Anyway I did fire up a live usb and everything went smoothly nowā¦
I have two kernels installed (linux and linux-lts)
$ du -sh /boot
215M /boot
That should give you a rough idea of how much space you need.
Here are a few things that I observed. If you use dracut, the size of the initrd files are typically as follows:
normal hostonly initrd ~16 to 20MB
fallback initrd ~75 to 85MB
If you want a better estimate, you could also run dracut from the terminal first to generate all the images for each kernel and then take note of their sizes.