Conversation
|
Here's how eclean-kernel behaves on my system before this patch: And fater: Well... I've just realized that even without my patch, the "symlinks bootloader" finds the two kernels in my /boot. |
90237a8 to
dee52e5
Compare
ecleankernel/bootloader/extlinux.py
Outdated
| name = 'extlinux' | ||
| kernel_re = r'^\s*(:?LINUX|KERNEL)\s+(?P<path>.+)\s*$' | ||
| def_path = ('/boot/extlinux/extlinux.conf', | ||
| '/boot/syslinux/syslinux.cfg') |
There was a problem hiding this comment.
I know this is package is mostly old code, but let's use double quotes in new code, and make it diff-friendly.
| name = 'extlinux' | |
| kernel_re = r'^\s*(:?LINUX|KERNEL)\s+(?P<path>.+)\s*$' | |
| def_path = ('/boot/extlinux/extlinux.conf', | |
| '/boot/syslinux/syslinux.cfg') | |
| name = "extlinux" | |
| kernel_re = r"^\s*(:?LINUX|KERNEL)\s+(?P<path>.+)\s*$" | |
| def_path = ("/boot/extlinux/extlinux.conf", | |
| "/boot/syslinux/syslinux.cfg", | |
| ) |
|
It's been a while since I've used non-blspec layout but I'm not sure if it's supposed to be recognizing them as "other" rather than "std". |
I don't think this will cause us to do anything about non-Linux kernels, will it?
I think that's the same case as LILO — but I honestly have no clue how we're dealing with it there.
Isn't that just a matter of rewriting the paths? |
The second and third debug lines say that the That feels like a whole different problem that can be addressed in a different pull request.
Gentoo wiki discourages users from using
You might be right. I couldn't find anything on the internet defining LILO absolute paths.
It is and I may have expressed myself poorly. |
I've only implemented the BIOS/legacy boot + extlinux combination, because that's what I am using.
The current
krenel_rematches lines like these:A few things to discuss there:
KERNELtells extlinux to guess the format of the kernel image, which is whyLINUXis preferred for linux kernels. Do we want to supportKERNEL?extlinux.conf. If/bootis its own partition, then the above line would beLINUX /vmlinuz.old. I do not know if eclean-kernel can handle that, even ifextlinux.pywere to implement that logic.extlinux.conf. I do not know if eclean-kernel can handle that, even ifextlinux.pywere 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.