systemd question

Harald Hoyer harald.hoyer at gmail.com
Mon May 30 10:00:29 UTC 2011


Am 16.05.2011 20:03, schrieb Bill Nottingham:
> Tom Horsley (horsley1953 at gmail.com) said: 
>> I've been fooling with the systemctl (unfortunately similar
>> to the sysctl name) tool, and I see "units" for all the
>> devices on my system with long names something like
>> sys-pci-yadda-yadda.device.
>>
>> I have occasionally wanted the ability to make some bit
>> of hardware on my system disappear. Don't want linux to
>> fool with it at all (but don't want to take it apart
>> and yank the board either :-).
>>
>> Can I use systemctl to do this? Essentially disable
>> some device unit so the system won't try to use that
>> bit of hardware for anything?
> 
> To the best of my knowledge, no. Those are populated in systemd via udev.
> 
>> Just curious. (Of course what I really want is probably
>> something at a much lower level - something like a
>> kernel command line parameter that would make the
>> initial device enumeration skip the device entirely
>> as early in the boot process as possible).
> 

> rd.driver.blacklist=<driver>

to make it permanent

echo blacklist <drivername> >> /etc/modprobe.d/myblacklist.conf

> 
> Bill



More information about the test mailing list