[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /boot/grub/grub.cfg menu entries



Michel Verdier:
> Intense Red:
> 
> >   Looking at /boot/grub/grub.cfg it uses a function format that I
> > don't recognize and cannot make easy sense of -- I just want a simple
> > text entry to give me the option of booting off sdf1 or sdg1 in the
> > grub menu.
> >
> >   Can anyone whack me with a clue-bat or ELI5 me how I can edit/add
> > an entry to grub.cfg? TIA.
> 
> You can directly change /boot/grub/grub.cfg. Entry name is the first
> parameter after "menuentry" :
> 
> menuentry 'here the name' --class debian ...
> 
> But it will be erased if you update-grub.
> Alternatively you can add full menuentry blocks in /etc/grub.d/40_custom
> and you will retrieve them in you grub menu even after update-grub.

Note that since June 2022, boot menu entries for other operating systems
are no longer generated by default in testing and sid.
To re-enable this, set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub.
To me, this looks easier and less laborious.


Reply to: