Skip to contentSkip to conversation

Question regarding numbering conventions

DISCUSSION Cipherboy 2 participants 2 messages Jul 2, 2012 – Jul 4, 2012

lore
Share & tools
lore

Cipherboy

author
#0 lore raw

A question to the community of developers,

What is the numbering conventions for scripts set to run with update-grub2 in /etc/grub.d? Specifically, I created a script to detect isos and add them to the grub menu to select on boot which I want to commit back to the community. In the README, it says that 20_* is reserved for 3rd party scrips, memtest86+ being an example. Would this be the best place to put it, even though people could potentially have a dozens of live images, bumping other operating systems (Windows comes to mind) further down the list?

Thank you,
Alex Scheel

#1 lore raw

Hi

Personnaly, I'm using custom.cfg. This file is incorporated at the end of grub's menu generation and you can

either generate additionnal lines at the end of the standard menu or generate a brand new menu in using the configmenu command.

I then added a folder in the /boot/grub folder to hold all my scripts, /boot/grub/greffons (this name stands for "addons" for english speaking people)

So my custom.cfg file reads :

source ${prefix}/greffons/shunt.menu.cfg
source ${prefix}/greffons/iso.menu.cfg
source ${prefix}/greffons/config.menu.cfg

shunt.menu.cfg is used to boot directly with my prefered distribution without menu or delay, or display the menu if I hold the control key down during the boot process iso.menu.cfg is used to boot from my iso files, preventing me from burning CDs
config.menu.cfg is used to look for the various grub.cfg's and display a menu to allow me to boot from the one I want

The updating of custom.cfg is dynamic as you need not run grub-mkconfig to take the modifications into account.

Arbiel

Quoted 13 lines · Cipherboy

A question to the community of developers,

What is the numbering conventions for scripts set to run with update-grub2 in /etc/grub.d? Specifically, I created a script to detect isos and add them to the grub menu to select on boot which I want to commit back to the community. In the README, it says that 20_* is reserved for 3rd party scrips, memtest86+ being an example. Would this be the best place to put it, even though people could potentially have a dozens of live images, bumping other operating systems (Windows comes to mind) further down the list?

Thank you,
Alex Scheel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel