You are not logged in.

#1 2022-06-10 16:26:33

marshalphoenix
Member
Registered: 2022-05-16
Posts: 3

How to rearrange grub boot order

To clarify , I am not asking for changing grub default os.
I want to have the behaviour of grub customizer without actually using it

For example

Previous grub boot menu
Linux zen
Linux
Linux lts
Windows
Uefi settings

New grub boot menu
Linux lts
Windows
Linux
Linux Zen
Uefi settings

I don't want to make Linux lts my default os using default grub = 2 , I want to rearrange the grub menu in the above mentioned order

Offline

#2 2022-06-11 00:54:19

jonno2002
Member
Registered: 2016-11-21
Posts: 868

Re: How to rearrange grub boot order

edit your

/boot/grub/grub.cfg

in the section

### BEGIN /etc/grub.d/10_linux ###
menuentry '...'...'...' {
...
...
...
}
submenu '...'....'....' {
	menuentry '....'...'...' {
	...
	...
	...
	}
	menuentry '....'...'...' {
	...
	...
	...
	}
}
y
### END /etc/grub.d/10_linux ###

simply move the "menuentry" sections around to the order you wish.

obviously this will be undone if you update grub.

Offline

Board footer

Powered by FluxBB