If bootctl 257 or newer is installed, we don't use sbsigntools anymore
so don't require it in that case.
reason="sign verity roothash signature with OpenSSL engine",
)
- if want_efi(config) and config.secure_boot and config.secure_boot_auto_enroll:
+ if (
+ want_efi(config)
+ and config.secure_boot
+ and config.secure_boot_auto_enroll
+ and (
+ not config.find_binary("bootctl")
+ or systemd_tool_version("bootctl", sandbox=config.sandbox) < "257~devel"
+ )
+ ):
check_tool(config, "sbsiglist", reason="set up systemd-boot secure boot auto-enrollment")
check_tool(config, "sbvarsign", reason="set up systemd-boot secure boot auto-enrollment")