new kernel grub entries

This forum is dedicated to new ideas, suggestions and proposals.

new kernel grub entries

Postby csablak » Oct 20th, '14, 18:26

I install often my friends Mageia Linux with legacy Grub.
They understand, and executes that upgrade the packages when see the red circle on the white exclamation mark.
But when it is kernel updates, then they no understand what the extra entries the boot menu, and not deal it and started the default old kernel.
So if the new kernel will be installed,
and made ​​entry into the grub menu.list
Then good would be have it default also be done.
csablak
 
Posts: 23
Joined: Oct 20th, '14, 18:24

Re: new kernel grub entries

Postby jkerr82508 » Oct 20th, '14, 18:50

The new kernel is made the default. "Boot Mageia" boots the newest kernel. To check which kernel has been booted enter in a terminal
Code: Select all
uname -r

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: new kernel grub entries

Postby csablak » Oct 21st, '14, 00:38

Unfortunately, no. The new kernel entry at the bottom the menu.
And if you do not to choose, you will not even start.
Who does not know what it is, do not select the the new entry. Her always old the start, which is at the top.
csablak
 
Posts: 23
Joined: Oct 20th, '14, 18:24

Re: new kernel grub entries

Postby jkerr82508 » Oct 21st, '14, 01:13

The new kernel is listed as the last option, but the default (the first entry) should also boot the new kernel. If this does not happen, please provide the result of
Code: Select all
ls -ll /boot
and as root
Code: Select all
cat /boot/grub/menu.lst

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: new kernel grub entries

Postby csablak » Oct 22nd, '14, 13:35

I think I know why this thing is not working for me. In fact, I fact regularly prod grub.
First, it was not like the gfx. Secondly, if only text grub choose, you will need to edit the title line
and the specific kernel and initrd to call. Not only is the link.
Therefore, for me, and all machine Where I install the Mageia, looks like the menu.lst.
Code: Select all
timeout 10
color yellow/brown white/red
default 0

title Mageia 4 - (desktop 3.14.18-3.mga4)
kernel (hd0,0)/boot/vmlinuz-3.14.18-desktop-3.mga4 root=UUID=4d92f714-5684-427b-bda0-8a4e80f3d464 resume=UUID=3844957c-37c2-435b-bb20-aee2b6f1dfd6 vga=790
root (hd0,0)
initrd /boot/initrd-3.14.18-desktop-3.mga4.img

title Mageia 4 - CLI
kernel (hd0,0)/boot/vmlinuz-3.14.18-desktop-3.mga4 root=UUID=4d92f714-5684-427b-bda0-8a4e80f3d464 3 resume=UUID=3844957c-37c2-435b-bb20-aee2b6f1dfd6 vga=790
root (hd0,0)
initrd /boot/initrd-3.14.18-desktop-3.mga4.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz root=UUID=4d92f714-5684-427b-bda0-8a4e80f3d464 resume=UUID=3844957c-37c2-435b-bb20-aee2b6f1dfd6
root (hd0,0)
initrd /boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz root=UUID=4d92f714-5684-427b-bda0-8a4e80f3d464 failsafe
root (hd0,0)
initrd /boot/initrd.img


So if you come with a new kernel the bottom of the menu is, but that under the "color" 'default' value will not change.
In this case, "default = 4"
But for me it is missing.
csablak
 
Posts: 23
Joined: Oct 20th, '14, 18:24

Re: new kernel grub entries

Postby jkerr82508 » Oct 22nd, '14, 16:31

Since you have changed the menu.lst as set up by Mageia, you cannot expect the kernel upgrade process to automatically update the default entry. The upgrade process cannot guess which kernel you want as default. You'll need to edit menu.lst after each kernel upgrade.

The Mageia menu.lst makes use of the symlinks, vmlinuz and initrd.img, instead of specifying the versions explicitly, in the default entries. The symlinks are updated automatically with each kernel upgrade. You may be able to achieve what you want by making use of those symlinks.

Code: Select all
ls -ll /boot
will tell you which versions the symlinks curently point to.

For example changing the default entry in your menu.lst to read something like:
Code: Select all
title Mageia 4 - default
kernel (hd0,0)/boot/vmlinuz root=UUID=4d92f714-5684-427b-bda0-8a4e80f3d464 resume=UUID=3844957c-37c2-435b-bb20-aee2b6f1dfd6 vga=790
root (hd0,0)
initrd /boot/initrd.img
may give you the result that you want.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland


Return to Ideas and suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron