On Thu, Aug 25, 2016 at 12:39 PM, erwan daniel <[email protected]> wrote:
> Hello, > > > After a lot of search. I need to ask the question to specialist. > I would create my own module for Grub (.mod loaded by insmod) the only web > page who talks about that is here http://blog.fpmurphy.com/2010/ > 06/grub2-modules.html > > The instruction are not clear, i don't know where i can find the dl.h to > get all function available. > > And the compilation is very strange.. > > > If it's not possible, you have an idea on how to grub can remember the > last choice in boot menu ? > > https://www.gnu.org/software/grub/manual/grub.html See specifically the section about GRUB_SAVEDEFAULT. > First i have think it is possible in script conf grub.conf but i haven't > seen any function to write in a file an index for exemple to know on the > next boot what is the entry to focus. > GRUB_SAVEDEFAULT is implemented using the grub environment block: https://www.gnu.org/software/grub/manual/grub.html#Environment-block _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
