diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-14 15:21:04 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-15 11:29:35 +0900 |
commit | e0e789c1e97e2cdf1cafe0c6b7d7e43fa054f151 (patch) | |
tree | 17c804647abb04628c7c318ab92c1b91aeed656b /rules.d | |
parent | 51d9aec0ff333ff554079da4babf6dbfa9837096 (diff) | |
download | systemd-e0e789c1e97e2cdf1cafe0c6b7d7e43fa054f151.tar.gz |
udev: re-assign ID_NET_DRIVER=, ID_NET_LINK_FILE=, ID_NET_NAME= properties on non-'add' uevent
Previous commit makes drop ID_NET_DRIVER=, ID_NET_LINK_FILE=, and
ID_NET_NAME= properties for network interfaces on 'move' uevent.
ID_NET_DRIVER= and ID_NET_LINK_FILE= properties are used by networkctl.
ID_NET_NAME= may be used by end-user rules or programs. So, let's
re-assign them on 'move' uevent. (Note that strictly speaking, this
makes them re-assigned on all but 'remove' uevent.)
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/80-net-setup-link.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/80-net-setup-link.rules b/rules.d/80-net-setup-link.rules index 6e411a91f0..bafc3fbc84 100644 --- a/rules.d/80-net-setup-link.rules +++ b/rules.d/80-net-setup-link.rules @@ -4,7 +4,7 @@ SUBSYSTEM!="net", GOTO="net_setup_link_end" IMPORT{builtin}="path_id" -ACTION!="add", GOTO="net_setup_link_end" +ACTION=="remove", GOTO="net_setup_link_end" IMPORT{builtin}="net_setup_link" |