-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for BIOS/extlinux setups #59
base: master
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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", | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
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_re
matches lines like these: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
?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.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.