[systemd-devel] overriding udev rules

Mantas Mikulėnas grawity at gmail.com
Sun Feb 28 11:51:51 UTC 2016


On Sun, Feb 28, 2016 at 12:40 PM, Łukasz Stelmach <stlman at poczta.fm> wrote:

> Hi,
>
> One of the default rules supplied by systemd (v215 in Debian) is
> responsible restoring the state of rfkill switches.
>
>     SUBSYSTEM=="rfkill", TAG+="systemd",
> ENV{SYSTEMD_WANTS}+="systemd-rfkill@$name.service"
>
> For a reason or two I'd like to override it and not restore the state.
> I don't want make a copy of 99-systemd.rules in /etc just to edit one
> line. Is there any other reasonable way to prevent the above rule from
> being executed?
>

You can `systemctl mask systemd-rfkill at .service`.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160228/e31a51b4/attachment.html>


More information about the systemd-devel mailing list