Merge pull request #31526 from poettering/proc-cmdline-underscorify
make sure we use underscores for kernel cmdline option names, not dashes
This commit is contained in:
@@ -751,9 +751,9 @@ static int condition_test_needs_update(Condition *c, char **env) {
|
||||
assert(c->parameter);
|
||||
assert(c->type == CONDITION_NEEDS_UPDATE);
|
||||
|
||||
r = proc_cmdline_get_bool("systemd.condition-needs-update", /* flags = */ 0, &b);
|
||||
r = proc_cmdline_get_bool("systemd.condition_needs_update", /* flags = */ 0, &b);
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "Failed to parse systemd.condition-needs-update= kernel command line argument, ignoring: %m");
|
||||
log_debug_errno(r, "Failed to parse systemd.condition_needs_update= kernel command line argument, ignoring: %m");
|
||||
if (r > 0)
|
||||
return b;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ const NamingScheme* naming_scheme(void) {
|
||||
return cache;
|
||||
|
||||
/* Acquire setting from the kernel command line */
|
||||
(void) proc_cmdline_get_key("net.naming-scheme", 0, &buffer);
|
||||
(void) proc_cmdline_get_key("net.naming_scheme", 0, &buffer);
|
||||
|
||||
/* Also acquire it from an env var */
|
||||
e = getenv("NET_NAMING_SCHEME");
|
||||
|
||||
Reference in New Issue
Block a user