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
>
Had a script that I had used in past on another system.
mknewrescue
/etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) /boot/vmlinuz-$(uname -r)
At present uname -r gives value of 5.9.12-100.fc32.x86_64
on this notebook.
> You are correct that removing the old rescue kernel and initramfs
> should recreate new ones, but it happens at the next kernel update.
Didn't know it required a kernel to be upgraded. Thought the next reboot
if they were removed would to it. Interesting.
The script has a reference at end.
new-kernel-pkg --install "$KERNEL_VERSION" --kernel-image "$NEW_KERNEL_IMAGE"
--initrdfile "$INITRDFILE" --banner "$NAME $VERSION_ID Rescue $MACHINE_ID"
First time I ran it, it reported that new-kernel-pkg was missing??
Found that it is in grubby-deprecated, so installed that, and reran it.
It then reported that it couldn't find a theme, but it did show up.
ran mkgrub-config, so perhaps that had created it??
> So, you could do it just before a new kernel is going to be installed,
> and it will happen during install.
>
Thanks
> _______________________________________________
> 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
_______________________________________________ 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