From: Antonio Alvarez Feijoo Date: Mon, 19 Feb 2024 15:53:15 +0000 (+0100) Subject: gpt-auto-generator: fix argument passed to `parse_image_policy_argument` X-Git-Tag: v256-rc1~808 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0a0059c214905595ffc9b0348ec8dfa88b49b6d;p=thirdparty%2Fsystemd.git 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 06e78680e3c36589b785f90ecda64d124905a3f7 --- diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 1fd687108a9..c42736cd69e 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -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")) {