Ubuntu 20.04.6 LTS apt problems - how to upgrade f/w?

Robert Blair ubuntu-qygzanxc at listemail.net
Wed Nov 27 18:47:02 UTC 2024


On Wed, 2024-11-27 at 16:31 +0100, Bo Berglund wrote:
> On Wed, 27 Nov 2024 10:11:11 -0500, Jeffrey Walton
> <noloader at gmail.com> wrote:
> 
> > > This morning I had already changed:
> > > GRUB_DEFAULT=3
> > > to
> > > GRUB_DEFAULT=4
> > > 
> > > then:
> > > 
> > > sudo update-grub
> > > sudo reboot
> > > 
> > > And it came back up with the same kernel...
> > 
> > I thought you were supposed to set both GRUB_DEFAULT and
> > GRUB_SAVEDEFAULT. See <https://unix.stackexchange.com/q/198003>.
> > 
> 
> This is what is not commented out in grub:
> 
> GRUB_DEFAULT=0
> GRUB_TIMEOUT_STYLE=hidden
> GRUB_TIMEOUT=5
> GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
> GRUB_CMDLINE_LINUX_DEFAULT=""
> GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
> 
> I believe that this:
> 
> GRUB_SAVEDEFAULT=1
> 
> will save whatever item you start so it will be what is started the
> *next* time
> if you do not select something else on the menu within the timeout.
> 
> But I want to make sure that my *server* ALWAYS starts when power is
> applied or
> reboot is commanded or the reset button is pressed.
> 
> It should not go into something else if the user had briefly switched
> to that
> earlier.
> 
> 
> -- 
> Bo Berglund
> Developer in Sweden
> 
> 
 I think what everyone is missing is the parameter "DEFAULT=0" is
referring to is the not the kernel but to the line number in the grub
boot menu.  Since the OP says that the correct partition is booting
then 0 is the correct value.  If on boot you get the grub menu and the
press "enter" you will get a second grub menu that lists the kernels.

see this on how to set the default kernel
https://askubuntu.com/questions/1308901/setting-older-kernel-version-as-default




More information about the ubuntu-users mailing list