You are not logged in.
Pages: 1
Topic closed
Hi,
I haven't found on the wiki how to add a shutdown and a reboot entry to gummiboot's menu. Google doesn't give more answer. Is it possible to do?
I guess it has to do with adding the appropriate "options" option in a .conf file.
Thanks!
Offline
The "options" are for kernel or UEFI parameters.
There doesn't seem to be an option for this in the upsteam documentation.
http://freedesktop.org/wiki/Software/gummiboot/
Jin, Jîyan, Azadî
Offline
Gummiboot is only a ferryman to the kernel, doesn't have particular feature to halt nor shutdown the machine. Maybe you may try to find a small program that will do and then gummiboot will pass the ball to it.
do it good first, it will be faster than do it twice the saint ![]()
Offline
Is it possible to run an efi shell script from a gummiboot entry? Then you could use "reset -w|-s" I think.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Is it possible to run an efi shell script from a gummiboot entry? Then you could use "reset -w|-s" I think.
Yes it certainly is -- the gummiboot menu has an option to launch the EFI shell; I didn't think of that...
Jin, Jîyan, Azadî
Offline
That's what I was thinking about, progandy. So I need to write a /boot/loader/entries/reboot.conf file that looks like
title Reboot
options reset -wno? This little file doesn't work…
Offline
As I said, the "options" are for kernel parameters.
You would have to launch the EFI shell and then run the command given by @progandy; there is no way of "scripting" it from the menu AFAIK.
Jin, Jîyan, Azadî
Offline
As I said, the "options" are for kernel parameters.
You would have to launch the EFI shell and then run the command given by @progandy; there is no way of "scripting" it from the menu AFAIK.
I'm not sure. It may be possible to run a shell like this:
title Shell action
efi /shellx64.efi
options resetscript.nsh| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Is it possible to run an efi shell script from a gummiboot entry? Then you could use "reset -w|-s" I think.
Isn't. Gummiboot has to load the shell program and pass the arguments to it.
do it good first, it will be faster than do it twice the saint ![]()
Offline
Sorry for the necro, but I hope this helps any Google traveler from the future: I found you can specify the equivalent of a runlevel using the systemd.unit option, so I could have my shutdown entry by appending
systemd.unit=poweroff.targetto the options line, a new /boot/loader/entries/poweroff.conf looks like this:
title Poweroff
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=PARTUUID=94bd4b58-9415-4523-b478-031117ca4dfe systemd.unit=poweroff.targetSource: http://cmdlinelinux.blogspot.com/2014/0 … linux.html
Offline
Closing this old thread.
Note that gummiboot ceased to exist some years ago after it was absorbed into the systemd project. If you are still using 'gummiboot' you should look into upgrading to 'systemd-boot' instead (or an alternative).
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
Pages: 1
Topic closed