You are not logged in.
Pages: 1
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
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
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
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
Solved using Pacman hooks: https://github.com/carmilso/pacman-linux-hook
Offline
Pages: 1