On Tue, Apr 5, 2022 at 9:47 AM stan via devel <devel(a)lists.fedoraproject.org>
On Mon, 4 Apr 2022 15:58:14 -0500
Gregory Bartholomew <gregory.lee.bartholomew(a)gmail.com> wrote:
> > Of topic but related: I wish there was supported option to remove
> > the current rescue kernel,
> Is echo "dracut_rescue_image=no" > /etc/dracut.conf.d/rescue.conf not
That is an interesting option. It isn't documented in man dracut.conf.
Is it new?
It's definitely not new. I didn't realize it wasn't documented. I don't
remember where I found that info now. I may have gotten it from reading the
/usr/lib/kernel/install.d/51-dracut-rescue.install script directly.
I just manually remove the rescue vmlinuz and initramfs and
/usr/lib/kernel/install.d/51-dracut-rescue.install add $(uname -r) ""
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