Hello,

On Wed, Jul 25, 2018 at 07:51:11PM +0200, Reiner Buehl wrote:
> bilbo:~# awk -F"'" '/menuentry/ {print $2}' /boot/grub/grub.cfg
> 
> Debian GNU/Linux
> 
> Advanced options for Debian GNU/Linux

[…]

> Debian GNU/Linux, with Linux 4.9.0-7-amd64
> 
> Debian GNU/Linux, with Linux 4.9.0-7-amd64 (sysvinit)
> 
> Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode)

> Do you know if just specifying "Debian GNU/Linux, with Linux 4.9.0-7-amd64"
> as option to grub-set-default is enough or do I need to somehow "navigate"
> into the "Advanced options for Debian GNU/Linux" sub menu?

I've never actually tried setting the menu entry name alone, instead
have always specified the full path, like:

# grub-set-default 'Advanced options for Debian GNU/Linux>Debian GNU/Linux, 
with Linux 4.9.0-7-amd64'

Cheers,
Andy

Reply via email to