Skip to content

Commit

Permalink
udev: Use $name in issuegen rule
Browse files Browse the repository at this point in the history
A user is trying to rename network interfaces. This is working but the login
issue file still has the initial network interface names. This appears to be
similar to thkukuk/issue-generator#6, fix it by using
$name instead of $ENV{INTERACE}, so that the rule runs with a changed name.

Signed-off-by: Jeremi Piotrowski <[email protected]>
  • Loading branch information
jepio committed Sep 4, 2023
1 parent 6929ace commit 41b69d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions udev/rules.d/90-issuegen.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="e*", RUN+="/usr/lib/flatcar/issuegen add $env{INTERFACE}"
ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="e*", RUN+="/usr/lib/flatcar/issuegen remove $env{INTERFACE}"
ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="e*", RUN+="/usr/lib/flatcar/issuegen add $name"
ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="e*", RUN+="/usr/lib/flatcar/issuegen remove $name"

0 comments on commit 41b69d4

Please sign in to comment.