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

Lennart Poettering lennart at poettering.net
Fri Nov 18 11:04:37 UTC 2022


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


More information about the systemd-devel mailing list