gpt-auto-generator: fix argument passed to parse_image_policy_argument
Otherwise:
```
Feb 19 16:35:34 localhost systemd-gpt-auto-generator[188]: Assertion 's' failed at src/shared/image-policy.c:656, function parse_image_policy_argument(). Aborting.
```
Fixes 06e78680e3
This commit is contained in:
committed by
Luca Boccassi
parent
f927b872d6
commit
d0a0059c21
@@ -936,7 +936,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
||||
else if (streq(key, "ro") && !value)
|
||||
arg_root_rw = false;
|
||||
else if (proc_cmdline_key_streq(key, "systemd.image_policy"))
|
||||
return parse_image_policy_argument(optarg, &arg_image_policy);
|
||||
return parse_image_policy_argument(value, &arg_image_policy);
|
||||
|
||||
else if (streq(key, "systemd.swap")) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user