mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-24 02:03:54 +03:00
core/main: also check the argument terminator
For future-proof reasons, in case we will add
another option that starts with --deserialize.
Addresses 4f44d2c4f7 (r107285603)
This commit is contained in:
parent
56df2f6f9b
commit
09567df7db
@ -2744,7 +2744,7 @@ static bool early_skip_setup_check(int argc, char *argv[]) {
|
||||
for (int i = 1; i < argc; i++)
|
||||
if (streq(argv[i], "--switched-root"))
|
||||
return false; /* If we switched root, don't skip the setup. */
|
||||
else if (startswith(argv[i], "--deserialize"))
|
||||
else if (startswith(argv[i], "--deserialize=") || streq(argv[i], "--deserialize"))
|
||||
found_deserialize = true;
|
||||
|
||||
return found_deserialize; /* When we are deserializing, then we are reexecuting, hence avoid the extensive setup */
|
||||
|
Loading…
x
Reference in New Issue
Block a user