You are not logged in.

#1 2017-12-11 10:46:13

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Kernel Order command?

I have Linux-Hardened, LInux-LTS and Linux-Arch installed.

After a recent update Linux-LTS took over as the default.

What commands do you reccomend me to use to make Linux-Hardened my default?


"Open/Free Source the future!"

Offline

#2 2017-12-11 11:13:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Kernel Order command?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-12-11 11:27:14

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: Kernel Order command?

Mod note: moving to NC


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2017-12-12 04:22:50

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Kernel Order command?

I went to /etc/default/grub to change what kernel I want the sytem to use on start up.

I tried everything and I still get linux-lts as my default.


"Open/Free Source the future!"

Offline

#5 2017-12-12 04:47:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Kernel Order command?

You "went" there... Did you do anything?

You "tried everything": what does that mean?

Please read How To Ask Questions The Smart Way and include some actual details. Like your config, for a start.



Moving to Newbie Corner.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2017-12-12 05:07:55

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Kernel Order command?

1) I entered this command to know what I have installed:
sudo grub-mkconfig -o /boot/grub/grub.cfg

2) I entered this command to know what number I should use for linux-hardened. It has the number 4, therefore I should use 3, because I need to subtract it by one.
sudo grep "menuentry '" /boot/grub/grub.cfg | less -N

3) I entered kernel boot order number:
sudo nano /etc/default/grub

4) I changed the number from 0 to 3:
GRUB_DEFAULT=0   now    GRUB_DEFAULT=3

5) I updated GRUB menu:
sudo grub-mkconfig -o /boot/grub/grub.cfg

6) I rebooted and nothing changed.





Could it be that it is conflicting with:
GRUB_FORCE_HIDDEN_MENU="true"

Beause now I can't even hold the Shift Key to unhide the GRUB Menu at startup. -___-

Last edited by Xeno_Idaltu (2017-12-12 05:13:05)


"Open/Free Source the future!"

Offline

#7 2017-12-12 07:12:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel Order command?

Perhaps Arch's GRUB is not "controlling" the boot process, a quick way to correct this would be to run `grub-install` again.

We should probably check first though: are you booted in UEFI mode?

If so, can we please see the full output of:

# efibootmgr -v

If that command errors out then you are not booted in UEFI mode wink

Xeno_Idaltu wrote:

Could it be that it is conflicting with:
GRUB_FORCE_HIDDEN_MENU="true"
Beause now I can't even hold the Shift Key to unhide the GRUB Menu at startup. -___-

^ This statement is inconsistent with:

I rebooted and nothing changed

Please clarify.

And no, I don't think the hidden menu option can "conflict" with the default entry setting.

EDIT: GRUB_DEFAULT also accepts the title of a menuentry as well as the number, that may be easier to work with.

Last edited by Head_on_a_Stick (2017-12-12 07:21:15)


Jin, Jîyan, Azadî

Offline

#8 2017-12-12 09:03:51

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Kernel Order command?

No, I'm not using UEFI this time.

I downloaded a cool KDE based app from AUR: grub2-editor-frameworks and it works like I want it to.


However, I'd like to fix this issue and not use grub2-editor-frameworks wink
You want me to uinstall GRUB2 and then install/mount it again?


"Open/Free Source the future!"

Offline

#9 2017-12-12 10:57:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: Kernel Order command?

Merging with your existing topic. Please don't crosspost.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2017-12-12 22:54:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel Order command?

Xeno_Idaltu wrote:

3) I entered kernel boot order number:
sudo nano /etc/default/grub

4) I changed the number from 0 to 3:
GRUB_DEFAULT=0   now    GRUB_DEFAULT=3

5) I updated GRUB menu:
sudo grub-mkconfig -o /boot/grub/grub.cfg

6) I rebooted and nothing changed.

Did you check /boot/grub/grub.cfg to see if the default was set correctly?

Have you tried using the title of the menuentry instead of the order number, as I suggested?

Xeno_Idaltu wrote:

I downloaded a cool KDE based app from AUR: grub2-editor-frameworks and it works like I want it to.

Does that change /boot/grub/grub.cfg in the same way that your `grub-mkconfig` command did?

That a GUI front end works but `grub-config` does not is most perplexing.

Please post your entire /etc/default/grub here, probably /boot/grub/grub.cfg as well.


Jin, Jîyan, Azadî

Offline

#11 2017-12-14 07:43:43

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Kernel Order command?

Sorry for my naive comment but would I be exposing data if I post that info since it has UUID info?


"Open/Free Source the future!"

Offline

#12 2017-12-14 08:25:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Kernel Order command?

The UUID uniquely identifies a partition,  are you afraid that someone might be stealing your hard disk and will then be able to identify your online persona by tracing back the UUID they found to your post here? Then you might want to blank it, but really this information is useless to most people.

Offline

#13 2017-12-14 08:31:29

Xeno_Idaltu
Member
From: Open Source Technocracy
Registered: 2017-12-07
Posts: 22
Website

Re: Kernel Order command?

Not afraid, just learning as I read.


"Open/Free Source the future!"

Offline

#14 2017-12-14 09:59:25

GrimBandito
Member
Registered: 2016-12-04
Posts: 48

Re: Kernel Order command?

Xeno_Idaltu wrote:

I have Linux-Hardened, LInux-LTS and Linux-Arch installed.

After a recent update Linux-LTS took over as the default.

What commands do you reccomend me to use to make Linux-Hardened my default?

Hi @Xeno_Idaltu, what you need to do is as follows:-

Insert the following line in your grub config file (/etc/default/grub):-

GRUB_DISABLE_SUBMENU=y

Then set the default menu entry by modifying for e.g.:-

GRUB_DEFAULT=2

Follow this by updating your actual grub config file (/boot/grub/grub.cfg):-

grub-mkconfig -o /boot/grub/grub.cfg

The correct menu entry in grub should now be correctly selected. Grub by default uses a submenu to hide most of your kernel entrys and as a consequence the GRUB_DEFAULT option fails to work correctly. Disabling the submenu corrects this.

Last edited by GrimBandito (2017-12-14 10:07:13)

Offline

Board footer

Powered by FluxBB