eclean-kernel
eclean-kernel copied to clipboard
Add support for BIOS/extlinux setups
I've only implemented the BIOS/legacy boot + extlinux combination, because that's what I am using.
The current krenel_re
matches lines like these:
KERENEL /boot/vmlinuz
LINUX /boot/vmlinuz.old
A few things to discuss there:
-
KERNEL
tells extlinux to guess the format of the kernel image, which is whyLINUX
is preferred for linux kernels. Do we want to supportKERNEL
? - Absolute paths in extlinux are relative to the filesystem containing
extlinux.conf
. If/boot
is its own partition, then the above line would beLINUX /vmlinuz.old
. I do not know if eclean-kernel can handle that, even ifextlinux.py
were to implement that logic. - Relative paths are relative to
extlinux.conf
. I do not know if eclean-kernel can handle that, even ifextlinux.py
were to implement that logic.
The config file is also a bit more complex than in my implementation: https://wiki.syslinux.org/wiki/index.php?title=Config#Location_and_name
The previous link also shows the EFI layout.