chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cryptsetup: allow configuration of LUKS disks via the kernel cmdline
[elogind.git]
/
src
/
core
/
main.c
diff --git
a/src/core/main.c
b/src/core/main.c
index e6a90e013301a48e4ed9ebf0596ad0e19b4a4a93..546582cff02af96391f36099e386fa87bd56b5fc 100644
(file)
--- a/
src/core/main.c
+++ b/
src/core/main.c
@@
-374,7
+374,8
@@
static int parse_proc_cmdline_word(const char *word) {
arg_sysv_console = r;
#endif
- } else if (startswith(word, "systemd.")) {
+ } else if (startswith(word, "systemd.") ||
+ (in_initrd() && startswith(word, "rd.systemd."))) {
log_warning("Unknown kernel switch %s. Ignoring.", word);