On Tue, 5 Apr 2022 11:26:35 -0500
Gregory Bartholomew <gregory.lee.bartholomew(a)gmail.com> wrote:
On Tue, Apr 5, 2022 at 9:47 AM stan via devel
<devel(a)lists.fedoraproject.org> wrote:
> I just manually remove the rescue vmlinuz and initramfs and
> then run
> /usr/lib/kernel/install.d/51-dracut-rescue.install add $(uname -r)
> "" /lib/modules/$(uname -r)/vmlinuz
> in the /boot directory to build a new rescue kernel from the
> currently running kernel. Is there an option to do that also?
> i.e. I invoke
>
> dracut from the command line and it automatically does all that if a
> rescue_build.conf file is present in /etc/dracut.conf.d/
>
Well sort of. If you really want complete control over how the rescue
kernels are installed one option is to copy
the /usr/lib/kernel/install.d/51-dracut-rescue.install script
to /etc/kernel/install.d and tweak it to do whatever you want under
whatever conditions you want. As long as the script under
/etc/kernel/install.d has the same name as the script under
/usr/lib/kernel/install.d, it will override (i.e. run instead of) the
one under /usr/lib/kernel/install.d.
Thanks for the information. It will probably be a rainy day project,
as doing it manually is not onerous, since I only do it when the
production kernel version changes. e.g. 5.17 to 5.18 So, about every
3 months?
I actually might take your suggestion about how to turn off rescue
kernels, since, like you, I have two installations of fedora, and use
one (previous version) as a rescue system. On the other hand, belt and
suspenders.