Re: initramfs: kernel update adds unwanted driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2018-04-14, Francis.Montagnac@xxxxxxxx <Francis.Montagnac@xxxxxxxx> wrote:
> 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
>
> Bexware, this file should have .conf as suffix.

Ah yes, thanks for pointing that out.

>> 1. Rebuild the initramfs with the 'dracut' command.  I haven't tested
>>    this yet. It seems a bit risky [...]

> 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
> grub.cfg.
>
> 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.

Thanks!  That looks like a good option.  I may prompt the user for
confirmation before doing that step in my driver install script -- how
likely is it that the admin has done something manually which that
script will undo? [It's been a long time since I ran RedHat much. I
think RedHat 8.0 was the last version I used regularly.]

-- 
Grant




_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux