[systemd-devel] Preventing automatic driver loading on live boot disk

Vadim Lebedev vadiml1024 at gmail.com
Fri Nov 18 15:39:45 UTC 2022


Awesome, thanks!

On Fri, Nov 18, 2022 at 12:04 PM Lennart Poettering <lennart at poettering.net>
wrote:

> On Do, 17.11.22 21:41, Andrei Borzenkov (arvidjaar at gmail.com) wrote:
>
> > On 17.11.2022 20:48, Lennart Poettering wrote:
> > > On Do, 17.11.22 18:17, Vadim Lebedev (vadiml1024 at gmail.com) wrote:
> > >
> > > > Awesome, thanks, it is EXTREMELY useful
> > > >   | Find the right one and denylist it.
> > > > One more question:  how do I  'denylist'  the offending alias?
> > >
> > > Via the "blacklist" stanza in the modprobe configuration files, like
> > > you already are using.
> > >
> >
> > Care to provide example how to use "blacklist" stanza to denylist only
> > specific PCI ID? Because kmod documentation does not explain it.
>
> Oh, right "blacklist" actually works differently than I was
> remembering. But this should work:
>
> alias pci:v00008086d0000A0EDsv000017AAsd000022D5bc0Csc03i30 letsmaskthisone
>
> if you do that, then the kernel requesting that modalias will tell
> modprobe to load letsmaskthisone.ko but that does not exist, so it
> will fail and not load anything.
>
> Lennart
>
> --
> Lennart Poettering, Berlin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20221118/a49ec51c/attachment.htm>


More information about the systemd-devel mailing list