From daeb71a36a98834664e4d95773a3629b746f4db8 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 28 Oct 2013 00:19:59 +0100 Subject: 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. --- src/shared/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/util.c b/src/shared/util.c index 2419a76d98..ef3b67b597 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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) -- cgit v1.2.3-54-g00ecf