This is slighty off topic and I apologise for the lack of knowledge.
Anyway, I looked into the size of my current /boot and my current size om my personal computer is ~600mb, on my work machine the same is about ~300mb.
The question here are the files: initramfs-linux-fallback.img and initramfs-linux.img.
I’m guessing that the initramfs-linux.img is the important one. But the fallback one, is that one created by grub? Will systemd-boot and dracut create those as well?
I’m kinda hoping the answer is no because otherwise I’ll have to increase the size of my boot-partition as it’s too small and I’m always reluctant to do that due to the risks of loosing all data.
Could an additional partition mounted at /boot be an alternative here if the ESP mounted at /efi is too small?
This is what it says in ArchWiki:
mount ESP to /efi and additionally mount an “Extended Boot Loader Partition” (XBOOTLDR) to /boot. This can be useful when a previously created ESP is too small to hold multiple boot loaders and/or kernels but the ESP cannot be easily resized (such as when installing Linux after Windows to dual boot). This method is supported by at least systemd-boot.
We use kernel-install with a BLS layout so I probably wouldn’t recommend mounting it to /boot but it should be possible to use an XBOOTLDR partition. However, I have never tested it.
To my disgrace, I am yet to try the latest development on systemd-boot + dracut on EnOS.
I converted a while back, an arch system according to the “old” manual way so I am still stuck in that thinking.
I wasn’t able to make XBOOTLDR work. I set the appropriate uuid and efi variables using bootctl, but apparently dracut doesn’t support it yet (though I did only a quick check on their bugtracker, no guarantee how current that info is). In the end I ended up reshuffling other partitions and extending the EFI partition.
Sure. I will give it a try. I have a spare Arch system with Grub so I can test on that.
I would like to learn the manual way first to see what happens “behind the scene” before starting using EnOS’ scripts. But it does work with Grub as well, doesn’t it?
to create an initramfs for the currently running kernel. After regenerating of grub.cfg, I can use this image to boot up the linux-zen kernel.
Since this one is a spare/test system, I’ve got several other kernels installed. I seem not to find what flag should I use with dracut for creating initramfs for all the other installed kernels with the same config as the currently running. I would appreciate a hint on this one.
how many kernels do you have installed?
I had a 300MB partition and had 2 kernel installed and it was enough to convert from GRUB to systemd-boot with dracut, but before doing that I did a backup for the whole /boot partition then removed the kernel images.