On Fri, 13 Apr 2018 21:03:34 -0000 Grant Edwards wrote:

> First create a file named /etc/dracut.conf.d/foo containing the line
> omit_drivers+="foo".  Then either

Beware, this file should have .conf as suffix.

> 1. Rebuild the initramfs with the 'dracut' command.  I haven't tested
>    this yet. It seems a bit risky, since (AFAICT) I don't have any way
>    of knowing what command-line options were used to generate the
>    current, working initramfs, and I might end up making unintentional
>    changes when I regenerate it.

You can simply execute the postrans of the kernel-core RPM

    rpm -q --scripts kernel-core-$(uname -r)
    posttrans scriptlet (using /bin/sh):
    /bin/kernel-install add 4.15.4-300.fc27.x86_64 
/lib/modules/4.15.4-300.fc27.x86_64/vmlinuz || exit $?

Thus, for the running kernel:

    /bin/kernel-install add $(uname -r) /lib/$(uname -r)/vmlinuz

It will regenerate the initramfs and eventually other things like the

I tested to add a /etc/dracut.conf.d/test.conf to omit a driver. It
works: the driver is no more in the initramfs.

users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to