Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2730  / 2 Years ago, sun, october 16, 2022, 5:28:40

I am not understanding how it comes to know which kernel image to load?
I have so many.
Once I had created my own kernel and recompiled.
How does it come to know that this is the one to load?


More From » grub2

 Answers
3

To answer your final question:



You can put the new menuentry anywhere in /etc/grub.d/40_custom.



Then edit /etc/default/grub, and change the DEFAULT to the name of the menuentry that you added to 40_custom. (Using the name rather than a 0-indexed number is best because it allows for the possibility of more kernel images being added or deleted later: see grub2 infopage).



Then make sure to run sudo update-grub2 (or your changes won't be written to grub.cfg).



Reasoning: 40_custom gets added to grub menu underneath any kernel images that grub-update2 finds, so the order within 40_custom won't overide the kernels found by 10_linux.


[#26453] Tuesday, October 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingwhin

Total Points: 332
Total Questions: 112
Total Answers: 115

Location: Burkina Faso
Member since Tue, Apr 26, 2022
2 Years ago
ingwhin questions
Sat, Jul 17, 21, 21:33, 3 Years ago
Mon, Oct 10, 22, 12:09, 2 Years ago
Tue, Jun 15, 21, 05:43, 3 Years ago
Mon, Oct 18, 21, 23:34, 3 Years ago
;