udev: link-config - move naming policy from udev rules
This introduces a new key NamePolicy, which takes an ordered list of naming policies. The first successful one is applide. If all fail the value of Name (if any) is used. The possible policies are 'onboard', 'slot', 'path' and 'mac'. This patch introduces a default link file, which replaces the equivalent udev rule.
This commit is contained in:
+1
-1
@@ -6004,7 +6004,7 @@ bool restore_state(void) {
|
||||
r = read_one_line_file("/proc/cmdline", &line);
|
||||
if (r < 0) {
|
||||
log_warning("Failed to read /proc/cmdline, ignoring: %s", strerror(-r));
|
||||
return 0;
|
||||
return true; /* something is very wrong, let's not make it worse */
|
||||
}
|
||||
|
||||
FOREACH_WORD_QUOTED(w, l, line, state)
|
||||
|
||||
Reference in New Issue
Block a user