From: Zbigniew Jędrzejewski-Szmek Date: Wed, 25 Feb 2026 14:42:53 +0000 (+0100) Subject: bootctl: override is_efi_boot() check by --variables= option (#40413) X-Git-Tag: v260-rc1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04897fbbeedee46eabc69dcda24ff121fe6480ef;p=thirdparty%2Fsystemd.git bootctl: override is_efi_boot() check by --variables= option (#40413) Fixes #40392. --- 04897fbbeedee46eabc69dcda24ff121fe6480ef diff --cc src/bootctl/bootctl.c index b69720d66c6,a74a131c247..da4592a7240 --- a/src/bootctl/bootctl.c +++ b/src/bootctl/bootctl.c @@@ -521,9 -498,14 +498,14 @@@ static int parse_argv(int argc, char *a break; case ARG_VARIABLES: - r = parse_tristate_argument("--variables=", optarg, &arg_touch_variables); + r = parse_tristate_argument_with_auto("--variables=", optarg, &arg_touch_variables); if (r < 0) return r; + #if !ENABLE_EFI + if (arg_touch_variables > 0) + return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), + "Compiled without support for EFI, --variables=%s cannot be specified.", optarg); + #endif break; case ARG_NO_VARIABLES: