From stevenfalco at gmail.com Mon May 6 13:39:13 2019 Content-Type: multipart/mixed; boundary="===============0640105189373434932==" MIME-Version: 1.0 From: Steven A. Falco To: devel at lists.fedoraproject.org Subject: Re: Kernel upgrades Date: Mon, 06 May 2019 09:38:45 -0400 Message-ID: <913955e2-f470-8bb8-e18b-0c5a07f0ef82@gmail.com> In-Reply-To: CAJCQCtR18J=Mko0G2bFZhVHNcG=Hp9oOQriQpF115y5XXKkNPA@mail.gmail.com --===============0640105189373434932== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 5/5/19 6:29 PM, Chris Murphy wrote: > On Sun, May 5, 2019 at 8:22 AM Steven A. Falco = wrote: >> >> I just upgraded my machine from F29 to F30. Now, whenever I install a n= ew kernel, the new kernel does not automatically become the default. In ot= her words, when I reboot, the previous kernel is still chosen by grub2. >> >> I can manually choose the new kernel in the grub2 menu, at which point i= t _does_ become the new default. I don't wind up at the "grub>" prompt, so= I think grub2 itself is fine. It is just that the grubenv is not updated = when the new kernel is installed. >> >> The machine has UEFI, but the system boots using the legacy BIOS compati= bility layer. I know that the boot mechanism changed a bit for F30, but I'= m not sure where to look to identify the cause of this problem. It doesn't= seem to be the same issue as described in BZ 1652806. > = > Post your /etc/default/grub file > = > I'm willing to bet there's a line > = > GRUB_SAVEDEFAULT=3Dtrue > = > If so, delete that line or comment it out and then run the usual > grub2-mkconfig and directing the output to the proper grub.cfg path > for your firmware type. > = > The default that should be honored is found in the grubenv file, which > (curiously) is found at the same path no matter your firmware type: > /boot/efi/EFI/fedora/grubenv > = > You can list its contents > = > # grub2-editenv list > = > And you can change it with > = > #grub2-set-default > = > The title of the kernel is found in the /boot/loader/entries/*conf > files - there is one file for each kernel. Thanks for the explanation. Here are the contents of /etc/default/grub. A= s you suspected, there is a GRUB_DEFAULT=3Dsaved line in there. GRUB_TIMEOUT=3D5 GRUB_DISTRIBUTOR=3D"$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=3Dsaved GRUB_DISABLE_SUBMENU=3Dtrue GRUB_TERMINAL_OUTPUT=3D"console" GRUB_CMDLINE_LINUX=3D"resume=3D/dev/mapper/fedora-swap rd.lvm.lv=3Dfedora/r= oot rd.md.uuid=3D77ae1678:58a79067:c0ad29e6:bd1862f8 rd.md.uuid=3Dbac1fa34:= 2d7a26e5:969d63ac:33ff4572 rd.lvm.lv=3Dfedora/swap" GRUB_DISABLE_RECOVERY=3D"true" GRUB_ENABLE_BLSCFG=3Dtrue I looked for grubenv, and the only one I found is at /boot/grub2/grubenv. = There is nothing in /boot/efi/EFI/fedora. This machine was set up on 2018-= 11-24, so it started life as a Fedora 29 machine. Is there a command I should run to move grubenv to /boot/efi/EFI/fedora? I= think I would also have to create a symlink from /boot/efi/EFI/fedora/grub= env to /etc/default/grub. I could of course do it manually, but if there i= s a better procedure, like re-installing some package(s), that would be pre= ferable. Steve --===============0640105189373434932==--