Merge pull request #10522 from lnykryn/initrd_debug

Let's make systemd-debug-generator usable also in initrd
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-10-26 10:08:39 +02:00
committed by GitHub
4 changed files with 23 additions and 10 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ int proc_cmdline_parse_given(const char *line, proc_cmdline_parse_t parse_item,
if (flags & PROC_CMDLINE_STRIP_RD_PREFIX)
key = q;
}
} else if (in_initrd() && flags & PROC_CMDLINE_RD_STRICT)
continue;
value = strchr(key, '=');
if (value)
+1
View File
@@ -8,6 +8,7 @@
enum {
PROC_CMDLINE_STRIP_RD_PREFIX = 1,
PROC_CMDLINE_VALUE_OPTIONAL = 2,
PROC_CMDLINE_RD_STRICT = 4
};
typedef int (*proc_cmdline_parse_t)(const char *key, const char *value, void *data);