[arch-general] How best to adapt grub configuration?
Hey hey, how would I best adapt Grub's configuration file (gurb.cfg)? The usecase: I use Grub's play command to play different melodies for different entries and one when Grub is ready to be used. The reason behind it: I'm blind and like to know quite early on what is happening. Where would I best put these changes so they will survive Grub updates and regeneration of the config file? Thanks and best wishes, Jeanette -------- * Website: http://juliencoder.de - for summer is a state of sound * SoundCloud: https://soundcloud.com/jeanette_c * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * GitHub: https://github.com/jeanette-c * Twitter: https://twitter.com/jeanette_c_s You should never try to change me I can be nobody else And I like the way I am <3 (Britney Spears)
Em abril 16, 2018 8:20 Jeanette C. via arch-general escreveu:
Hey hey, how would I best adapt Grub's configuration file (gurb.cfg)?
The usecase: I use Grub's play command to play different melodies for different entries and one when Grub is ready to be used. The reason behind it: I'm blind and like to know quite early on what is happening.
Where would I best put these changes so they will survive Grub updates and regeneration of the config file?
Thanks and best wishes,
Hi Jeanette, You can use the /etc/grub.d directory for this. Depending on how you implement this, you can use any file that does not come by default. Regards, Giancarlo Razzolini
Hi Jeanette,
in my opinion, the easiest option is to just write grub.cfg by hand.
Fortunately, in Arch, grub.cfg will never be overwritten by an update.
For basic functionality, grub.cfg may e.g. look like the following:
---
set default=0
set timeout=5
play <tune>
menuentry 'Arch' {
play
Hey hey, how would I best adapt Grub's configuration file (gurb.cfg)?
The usecase: I use Grub's play command to play different melodies for different entries and one when Grub is ready to be used. The reason behind it: I'm blind and like to know quite early on what is happening.
Where would I best put these changes so they will survive Grub updates and regeneration of the config file?
Thanks and best wishes,
Jeanette
-------- * Website: http://juliencoder.de - for summer is a state of sound * SoundCloud: https://soundcloud.com/jeanette_c * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * GitHub: https://github.com/jeanette-c * Twitter: https://twitter.com/jeanette_c_s
You should never try to change me I can be nobody else And I like the way I am <3 (Britney Spears)
Hello Einhad, thank you for your detailed response. That is currently the way I'm running it. I was just wondering if I should - as Giancarlo suggested - one of the suplementary files and, if so, which ones. As for the example configuration it was spot on. Alas, I haven't discovered a way to play the tunes when the cursor is on an entry. It's been a wile since I've read the documentation. Maybe another look is warranted. Best wishes, Jeanette -------- * Website: http://juliencoder.de - for summer is a state of sound * SoundCloud: https://soundcloud.com/jeanette_c * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g * GitHub: https://github.com/jeanette-c * Twitter: https://twitter.com/jeanette_c_s You should never try to change me I can be nobody else And I like the way I am <3 (Britney Spears)
participants (3)
-
Giancarlo Razzolini
-
Jeanette C.
-
respiranto