Page 1 of 1

How to change the order of grub display

PostPosted: Aug 16th, '16, 06:47
by nigelc
The order of the kernels has been changed. Boot Mageia 5 used to be at top of the screen.
I had not booted the system for while and had not noticed it.
This is how it looks on the grub menu:
Code: Select all
Boot Mageia  (safe mode)
desktop 4.1.15-2.mga5)
Boot Mageia5
desktop 4.4.13-1.mga5
desktop 4.4.16-1.mga5


This is the MCC

Code: Select all
 linux-nonfb (/boot/vmlinuz)
 failsafe (/boot/vmlinuz)
 desktop 4.1.15-2.mga5 (/boot/vmlinuz-4.1.15-desktop-2.mga5)
*linux (boot/vmlinuz)
 desktop 4.4.13-1.mga5 (/boot/vmlinuz-4.4.13-desktop-1.mga5)
 desktop 4.4.16-1.mga5 (/boot/vmlinuz)-4.4.16-desktop-1.mga5)

I Think the failsafe one was down further.
cheers.

Re: How to change the order of grub display

PostPosted: Aug 16th, '16, 08:47
by gohlip
have you tried
Code: Select all
# grub-mkconfig -o /boot/grub/menu.lst
or
Code: Select all
# grub-mkconfig -o /boot/grub2/grub.cfg
First command is for grub-legacy and the latter for grub 2.

If unsure which grub version you're on
Code: Select all
$ grub-install -v
or
Code: Select all
$ grub-install -V
Former on grub-legacy and latter for grub 2.

ps: grub 1.9x is grub 2 and grub 0.9x is grub-legacy

Re: How to change the order of grub display

PostPosted: Aug 16th, '16, 09:32
by nigelc
There is no grub-mkconfig.

Code: Select all
whereis grub-mkconfig
grub-mkconfig:

urpmq --fuzzy grub-mkconfig
No package named grub-mkconfig


I think it is grub legacy.

cheers

Re: How to change the order of grub display

PostPosted: Aug 16th, '16, 10:24
by gohlip
have you tried
Code: Select all
# grub-mkconfig -o /boot/grub2/grub.cfg


Should be
Code: Select all
# grub2-mkconfig -o /boot/grub2/grub.cfg
for grub 2. Sorry (I always missed this in Mageia. Other distro commands use only grub-mkconfig, regardless grub or grub 2).

I think it is grub legacy.

"grub-mkconfig" is not a package. It is a command. packages are 'grub' and grub2'
But since command grub-mkconfig won't work, it should be grub 2. Repeat - use "# grub2-mkconfig -o /boot/grub2/grub.cfg"
Package grub2 or grub is always installed by default in Mageia.

Re: How to change the order of grub display

PostPosted: Aug 16th, '16, 10:37
by plspls
don't worry order of the kernel is not important as long as it boot

important is one kernel is selected but does not matter which