help-grub
[Top][All Lists]
Advanced

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

list options & set-default for 'Advanced options'? " Please don't use ol


From: lssl
Subject: list options & set-default for 'Advanced options'? " Please don't use old title" ?
Date: Fri, 27 Jan 2017 10:31:20 -0800

I run

        grub2-mkconfig --version
                grub2-mkconfig (GRUB2) 2.02~beta3

I've used a convenience script to list Grub2 options to console

        grub2-select_2.sh
                #!/bin/bash
                oIFS="$IFS"
                IFS="'\""
                grep menuentry /boot/grub2/grub.cfg | \
                 while read ignore line ignoreb ; do
                  echo "$line"|grep -ve ^\\$ -ve ^\-
                 done
                IFS="$oIFS"

E.g.

        sh /usr/local/scripts/grub2-select_2.sh

returns

        openSUSE Leap 42.2
        Advanced options for openSUSE Leap 42.2
        openSUSE Leap 42.2, with Linux 4.9.6-1.gd1207ac-default
        openSUSE Leap 42.2, with Linux 4.9.6-1.gd1207ac-default (recovery mode)
        openSUSE Leap 42.2, with Linux 4.9.6-1.g413b315-default
        openSUSE Leap 42.2, with Linux 4.9.6-1.g413b315-default (recovery mode)
        openSUSE Leap 42.2, with Linux 4.9.5-3.g9bb1a8a-default
        openSUSE Leap 42.2, with Linux 4.9.5-3.g9bb1a8a-default (recovery mode)
        openSUSE Leap 42.2, with Linux 4.8.11-2.gff417d1-default
        openSUSE Leap 42.2, with Linux 4.8.11-2.gff417d1-default (recovery mode)
        halt

If I set the grub default

        grub2-set-default "openSUSE Leap 42.2, with Linux 
4.9.5-3.g9bb1a8a-default"

it completes successfully, reporting no error at console.

BUT, If I next

        grub2-mkconfig -o /boot/grub2/grub.cfg

it now/recently returns a warning

        ...
        Warning: Please don't use old title `openSUSE Leap 42.2, with Linux 
4.9.5-3.g9bb1a8a-default' for GRUB_DEFAULT, use `Advanced options for openSUSE 
Leap 42.2>openSUSE Leap 42.2, with Linux 4.9.5-3.g9bb1a8a-default' (for 
versions before 2.00) or 
`gnulinux-advanced-1a627a30-b16c-49f0-96e2-1916939bac89>gnulinux-4.9.5-3.g9bb1a8a-default-advanced-1a627a30-b16c-49f0-96e2-1916939bac89'
 (for 2.00 or later)
        ...
        done
        ...

Setting

        grub2-set-default 
"gnulinux-advanced-1a627a30-b16c-49f0-96e2-1916939bac89>gnulinux-4.9.5-3.g9bb1a8a-default-advanced-1a627a30-b16c-49f0-96e2-1916939bac89"

works jsut fine, and there's no further complaint from grub2-mkconfig.

Is there a more elucidating way to list the available Grub2 options in more 
detail to start?  I.e., to get to the 

        
gnulinux-advanced-1a627a30-b16c-49f0-96e2-1916939bac89>gnulinux-4.9.5-3.g9bb1a8a-default-advanced-1a627a30-b16c-49f0-96e2-1916939bac89

right off the bat?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]