From 41b69d4177215e501907e573d3331fb52ca4bd9d Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Mon, 4 Sep 2023 14:34:12 +0200 Subject: [PATCH] udev: Use $name in issuegen rule 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 https://github.com/thkukuk/issue-generator/issues/6, fix it by using $name instead of $ENV{INTERACE}, so that the rule runs with a changed name. Signed-off-by: Jeremi Piotrowski --- udev/rules.d/90-issuegen.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/udev/rules.d/90-issuegen.rules b/udev/rules.d/90-issuegen.rules index 3d115cc..3b576e8 100644 --- a/udev/rules.d/90-issuegen.rules +++ b/udev/rules.d/90-issuegen.rules @@ -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"