I have switched my system over to dracut. No more mkinitcpio.
Now I am wondering how I could customize dracut such that it picks the initramfs compression algorithm based on the kernel. E.g. I want zstd compression for kernel 5.9 and 5.10 but xz compression for kernel 5.4.
Is there a way to make dracut intelligent enough to automatically check that?
edit: expect 5.10 linux-lts round march… linux-lts current thats going into last year does not have zstd
so round march i gues… you have then 5.10 and 5.11
I know how to configure zstd. But if I do it like that it would be also active for the next 5.4 kernel. And this is what I want to prevent. I want that for the current linux-lts kernel the compression is NOT zstd but for all the newer ones.
I dont know my luxury i dont bother which compression as long it works zstd is at the end fast because it compress it less? But i do change later to zstd if 5.11 comes out idk…