![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
06.03.2018 17:34, Peter Suetterlin пишет:
Hi list,
any experts for tmpfiles.d around?
I have a laptop with intel ME that has a serial port. It is detected by linux (serial8250), but doesn't work because ME is disabled. Bad thing is, anything trying to access it runs into a 30s timeout :((
So I try to remove access to it using tmpfiles.d: woodstock:~ # cat /etc/tmpfiles.d/block_AMT_ttyS0.conf #Type Path Mode UID GID Age Argument z /dev/ttyS0 0600 - - - -
The correct way to do it is to add udev rule that sets desired MODE. Something like ACTION!="", ACTION!="delete", SUBYSTEM=="tty", KERNEL=="ttyS0", MODE="0600"
However, after boot I still have woodstock:~ # l /dev/ttyS0 crw-rw---- 1 root dialout 4, 64 Mar 6 10:18 /dev/ttyS0
Is 'z' the wrong command? According to the manpage it should change modes of existing files/directories, and the serial module is loaded before systemd starts the tmpfiles scripts.
Any ideas why it's not working?
Device probing is likely asynchronous and happens after module has been loaded, so you cannot be sure tmpfiles runs after particular device node has been created. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org