Web lists-archives.com

Re: System broken after yesterday's upgrade




On 13-04-17, solitone wrote:
> On Thursday, 13 April 2017 09:53:05 CEST Dejan Jocic wrote:
> > If you have old kernel, you do not have to choose it in the GRUB menu during
> > boot, you can set up your GRUB to boot from it automatically. 
> 
> I have a submenu entry in my grub.cfg:
> 
> solitone@alan:~$ grep --color menu /boot/grub/grub.cfg                                                                               
> [...]
> menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --
> class os $menuentry_id_option 'gnulinux-simple-7f537d3b-e578-4cd3-8583-
> f3a2281f7d01' {                                                                                                        
> submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
> 'gnulinux-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64' --class debian 
> --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-2-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {                                                      
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64 (systemd)' --
> class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-2-amd64-init-systemd-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64 (recovery mode)' 
> --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-2-amd64-recovery-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64' --class debian 
> --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-1-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (systemd)' --
> class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-1-amd64-init-systemd-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
>         menuentry 'Debian GNU/Linux, with Linux 4.9.0-1-amd64 (recovery mode)' 
> --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
> 'gnulinux-4.9.0-1-amd64-recovery-7f537d3b-e578-4cd3-8583-f3a2281f7d01' {
> 
> To automatically load 'Debian GNU/Linux, with Linux 4.9.0-1-amd64' I need to 
> set :
> GRUB_DEFAULT="1>3"
> in /etc/default/grub?
> 
> Cheers,
>   Davide
>  
You can set it with numbers, but you can set it also with quotes, like
for example:

GRUB_DEFAULT='gnulinux-4.9.0-1-amd64-advanced-7f537d3b-e578-4cd3-8583-f3a2281f7d01'

Which should be kind of more secure way if you do not to want to 
miss what you exactly want with numbers.

Anyway, however that you do it, after that you will need to run
# update-grub.