From 793166aea52dfbd06cfa622d5eda0bb31f9da6cf Mon Sep 17 00:00:00 2001 From: runiq Date: Mon, 19 Feb 2024 12:03:57 +0100 Subject: [PATCH] udev: String substitutions can be done in ENV, too Precedence for example in https://github.com/systemd/systemd/blob/ac63c8df309e37960618610d8b57ac19ac657254/rules.d/99-systemd.rules.in#L75. Add ENV to the list of keys where string substitutions can be used. While I'm at it, also sort the list in that paragraph alphabetically. --- man/udev.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/man/udev.xml b/man/udev.xml index 3619222962b..6719c1b1c2e 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -719,15 +719,16 @@ SUBSYSTEM=="net", OPTIONS="log_level=debug" - The NAME, SYMLINK, - PROGRAM, OWNER, - GROUP, MODE, SECLABEL, - and RUN fields support simple string substitutions. + The ENV, GROUP, + MODE, NAME, + OWNER, PROGRAM, + RUN, SECLABEL, and + SYMLINK fields support simple string substitutions. The RUN substitutions are performed after all rules have been processed, right before the program is executed, allowing for - the use of device properties set by earlier matching rules. For all other - fields, substitutions are performed while the individual rule is being - processed. The available substitutions are: + the use of device properties set by earlier matching rules. For all + other fields, substitutions are performed while the individual rule is + being processed. The available substitutions are: , -- 2.47.3