Page: Previous  1, 2

damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
:: Nobodyin wrote ::
Thank you. It works now. This is a summary of my grub.cfg file:

menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-x64v3-xanmod1'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-2-liquorix-amd64'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 5.15.0-58-generic'

BTW, do you have any influence with the grub maintainers? I have a
suggestion to make the submenus of the distros found by os-prober
look better when using custom themes. Thanks.


Well, the kernels aren't found by os-prober, they're discovered with whatever built-in code finds the kernels. However it's finding them, it would need to be written to notice patterns in kernel names and bundle them together. Not sure if anyone's done that before.

But otherwise, our only three options for wrangling the menu are enabling or disabling sub menus, remember the last option picked as default, and manually setting the entry index. Would be nice if there was a way to pick one by string pattern, like "*liquorix*".

Here's some reference material, but sounds like you've already read it: wiki.archlinux.org/title/GRUB/Tips_and_tricks#Multiple_entries
Back to top
Nobodyin
Status: Curious
Joined: 19 Jan 2023
Posts: 7
Reply Quote
:: damentz wrote ::
Ok, a new version of the kernel out that codes the version properly, you should see 6.1.8-2 as the version, with the -2 being the package version.


This is probably asking for too much already and I apologize if it is but
have you considered putting a "z" in front of that "2". It could stand for Zen.
This would make the liquorix entry appear ahead of the xanmod entry.

menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-z2-liquorix-amd64'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-x64v3-xanmod1'

Just a thought. Thanks for the excellent work you do with liquorix.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
It would actually need to be the opposite, I'd want an earlier letter in the alphabet, not a later after X.

Maybe I can do 6.1.8-lqx2 instead, which should come before 6.1.8-x86v3-xanmod1. Even if the the "x86v3" was removed, the X in xanmod still comes after the L in lqx.

I'll consider it for the next release.
Back to top
Nobodyin
Status: Curious
Joined: 19 Jan 2023
Posts: 7
Reply Quote
:: damentz wrote ::
It would actually need to be the opposite, I'd want an earlier letter in the alphabet, not a later after X.

Maybe I can do 6.1.8-lqx2 instead, which should come before 6.1.8-x86v3-xanmod1. Even if the the "x86v3" was removed, the X in xanmod still comes after the L in lqx.


That is what I thought at first too so I manually copied/renamed Linux 6.1.8-2-liquorix-amd64 into Linux 6.1.8-liquorix-amd64.
I then ran some tests and got the following:

menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-x64v3-xanmod1'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-liquorix-amd64'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 6.1.8-2-liquorix-amd64'
menuentry 'Linux Mint 21.1 Cinnamon, with Linux 5.15.0-58-generic'

You need that "z" to come before the "x". I think it has to do with the way 10_linux is processed by grub2.
Back to top
Nobodyin
Status: Curious
Joined: 19 Jan 2023
Posts: 7
Reply Quote
I forgot all about ascii values. The kernels are being listed in descending order(highest to lowest).
ascii value of x is 120
ascii value of l is 108
ascii value of z is 122

You need to name it with either a "y" or a "z" to show up before xanmod:
6.1.8-zen2-liquorix-amd64
6.1.8-z2-liquorix-amd64
6.1.8-y2-liquorix-amd64
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
I wouldn't get into trying to handle specific sorts against specific strings random kernels might decide on, that rarely goes well. I find that once stuff starts to get too specific, it starts generating unintended and often non-desirable consequences.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
Yep, I agree. I think I'll stop here with the solution we have. I'd need to add a y or z to the package version denominator, and all for petty reasons to order Liquorix over Xanmod.

My recommendation is keep either Liquorix or Xanmod installed, but always make sure you have the distribution stock as backup in-case something goes wrong.

Will mark this thread as resolved.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
linuxhint.com/change-grub-boot-order-debian-linux/

I think this is what he's looking for, change default grub boot order. Or something like that.
Back to top
Display posts from previous:   
Page: Previous  1, 2
All times are GMT - 8 Hours