On 9 Dec 2020 at 8:28, stan via users wrote: Date sent: Wed, 9 Dec 2020 08:28:19 -0700 To: users@xxxxxxxxxxxxxxxxxxxxxxx Subject: Re: Questions on grub2 kernel options. Organization: zohofree Send reply to: Community support for Fedora users <users@xxxxxxxxxxxxxxxxxxxxxxx> From: stan via users <users@xxxxxxxxxxxxxxxxxxxxxxx> Copies to: stan <upaitag@xxxxxxxx> > On Wed, 09 Dec 2020 17:42:32 +1000 > "Michael D. Setzer II" <msetzerii@xxxxxxxxx> wrote: > > > Noticed that my rescue kernels on one machine were actually a couple > > years old. Machine had been upgraded a couple times using dnf. > > > > Moved the rescue files to another locations, and thought the system > > was suppose to automatically rebuild new ones, but that didn't > > happen.. > > You can delete the rescue kernel and initramfs, and then run the > following command, in /boot, replacing the kernel versions with the > kernel in your /boot that you want to make the rescue kernel from. > > /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh 5.9.1-300.20201025.fc31.x86_64 /boot/vmlinuz-5.9.1-300.20201025.fc31.x86_64 > > You are correct that removing the old rescue kernel and initramfs > should recreate new ones, but it happens at the next kernel update. > So, you could do it just before a new kernel is going to be installed, > and it will happen during install. Noticed something interesting. the entry for rescue kernel is not updated in /boot/loader/entries -rw-r--r--. 1 root root 392 Nov 30 2019 189711f94e78436d9618b891a8fce70e-0-rescue.conf Has this in it, but is version 32 not 30 any longer?? title Fedora (0-rescue-189711f94e78436d9618b891a8fce70e) 30 (Workstation Edition) version 0-rescue-189711f94e78436d9618b891a8fce70e linux /vmlinuz-0-rescue-189711f94e78436d9618b891a8fce70e initrd /initramfs-0-rescue-189711f94e78436d9618b891a8fce70e.img options $kernelopts id fedora-0-0-rescue-189711f94e78436d9618b891a8fce70e grub_users $grub_users grub_arg --unrestricted grub_class kernel Don't know if this is with the new-kernel-pkg message that it can't find a theme. Strange didn't find that in that file, so message must come from somewhere else. Tried moving it, to see if it would be recreated if it was missing, but neither building a new rescue kernel or running grub2-mkconfig created a new one. So, put back the old one. Seems the names are the same. Didn't try booting it.. > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx +------------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor (Retired) mailto:mikes@xxxxxxxx mailto:msetzerii@xxxxxxxxx Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +------------------------------------------------------------+ _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx