]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: make udevadm and friends not warn about unknown settings
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Mar 2025 00:54:45 +0000 (09:54 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 21 Mar 2025 12:51:39 +0000 (12:51 +0000)
Without this change, when e.g. event_timeout= is specified in udev.conf,
udevadm and friends which loads udev.conf warn about unknown key:
===
$ udevadm info /sys/class/net/lo
/run/udev/udev.conf.d/test-17.conf:1: Unknown key 'event_timeout', ignoring.
/run/udev/udev.conf.d/test-17.conf:2: Unknown key 'timeout_signal', ignoring.
===

Follow-up for 07f5e35fe7967c824a87f18a3a1d3c22e5be70f5 (v256).

src/shared/udev-util.c

index a6956f5865eda1783d54cd586e11b17648ea3e0a..d3dabf13ebee713622e575e26376528a933a4936 100644 (file)
@@ -41,7 +41,12 @@ int udev_parse_config_full(const ConfigTableItem config_table[]) {
 int udev_parse_config(void) {
         int r, log_val = -1;
         const ConfigTableItem config_table[] = {
-                { NULL, "udev_log", config_parse_log_level, 0, &log_val },
+                { NULL, "udev_log",       config_parse_log_level, 0, &log_val },
+                { NULL, "children_max",   NULL,                   0, NULL     },
+                { NULL, "exec_delay",     NULL,                   0, NULL     },
+                { NULL, "event_timeout",  NULL,                   0, NULL     },
+                { NULL, "resolve_names",  NULL,                   0, NULL     },
+                { NULL, "timeout_signal", NULL,                   0, NULL     },
                 {}
         };