On Tue, Apr 5, 2022 at 9:47 AM stan via devel <devel@lists.fedoraproject.org>
wrote:

> On Mon, 4 Apr 2022 15:58:14 -0500
> Gregory Bartholomew <gregory.lee.bartholo...@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
> > sufficient?
>
> 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
> 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.
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to