You are not logged in.

#1 2017-04-17 11:30:34

karlospv94
Member
Registered: 2016-10-12
Posts: 101

Change echo in grub.cfg

In my menuentry I can see the following:

(...)
echo 'Loading Linux linux...'
(...)

but I want to put the $(uname -a) result instead of the second "linux". Can I simply put the POSIX instruction instead of that word to make it working?

Offline

#2 2017-04-17 11:41:34

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

Re: Change echo in grub.cfg

There's one way to find out for sure.

Why would you even ask here if it would take far less time to just try it.

Mod note: definitely not a Kernel & Hardware issue.  Not sure that there is any issue or real question here.  NC for now.


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

Offline

#3 2017-04-17 11:46:13

karlospv94
Member
Registered: 2016-10-12
Posts: 101

Re: Change echo in grub.cfg

Trilby wrote:

There's one way to find out for sure.

Why would you even ask here if it would take far less time to just try it.

Mod note: definitely not a Kernel & Hardware issue.  Not sure that there is any issue or real question here.  NC for now.

You are right, but I would not want to cannot access the grub only to test it

Offline

#4 2017-04-17 11:57:37

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

Re: Change echo in grub.cfg

I've never used grub, but I just googled for the documentation and it seems highly unlikely for several reasons.  Grub has it's own set of shell-like commands, but it is not a shell.  You can see the list of available commands and their options in the grub documentation.  Uname is not one of the listed commands - nor is there any mention of anything like subshells (though there are variables).

Most importantly, though, is just a little bit of thinking: what does uname do?  Uname reports information about the running kernel.  There is no kernel running when the bootloader is starting.

You could regenerate this line of your grub config with every kernel update, or perhaps with each shutdown.


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

Offline

#5 2017-04-17 20:31:33

karlospv94
Member
Registered: 2016-10-12
Posts: 101

Re: Change echo in grub.cfg

Offline

Board footer

Powered by FluxBB