Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ignored udev rules #24

Open
Seb35 opened this issue Jun 9, 2023 · 0 comments
Open

Remove ignored udev rules #24

Seb35 opened this issue Jun 9, 2023 · 0 comments

Comments

@Seb35
Copy link
Contributor

Seb35 commented Jun 9, 2023

Since systemd >= 243 (this commit specifically), udev emits warnings for ignored tokens in an OPTIONS key, they were silently ignored before. In Debian 11 these warnings are:

root@mytest11:~# journalctl -b -0 | grep gandi
[…]
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:14 Invalid value for OPTIONS key, ignoring: 'last_rule'
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:15 Invalid value for OPTIONS key, ignoring: 'last_rule'
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:16 Invalid value for OPTIONS key, ignoring: 'ignore_device'
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:16 The line takes no effect, ignoring.
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:22 Invalid value for OPTIONS key, ignoring: 'last_rule'
Jun 08 14:22:15 localhost systemd-udevd[290]: /etc/udev/rules.d/86-gandi.rules:32 Invalid value for OPTIONS key, ignoring: 'last_rule'
[…]

(obtained just after the first boot, also reported on issue #5)

I searched what was the semantics of last_rule and ignore_device:

  • last_rule was introduced on 2005-04-26 and removed on 2009-10-28 (udev >= v147 released on 2009-11-10) with this comment:
    remove "last_rule" option
    
    Its use breaks too many things which expect to be run from independent
    later rules, and is an idication that something needs to be fixed
    properly instead.
    
  • ignore_device was introduced on 2005-04-26 and removed on 2009-11-16 (udev >= v148 released on 2009-12-02) with this comment:
    remove "ignore_device"
    
    There is no way to ignore an event these days. Libudev events can
    not be suppressed. It only prevents RUN keys from being executed,
    which results in an inconsistent behavior in current setups.
    

This means these two actions are silently ignored since end of 2009. I guess there are no more servers running udev < 147 since most distributions have support for 5 to 7 years. It is probably ignored since Debian 6 (released on 2011, EOL 2014) and since Ubuntu 10.04 (EOL 2015).

In Gandi package these rules are present since the initial import on 2015-02-19.

Seb35 added a commit to Seb35/gandi-vm-config that referenced this issue Jun 9, 2023
These rules are ignored since udev 148 (released on 2009-12-02), but it
was silent until systemd 243 (released on 2019-09-03).

Issue: Gandi#24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant