Skip to content

Commit

Permalink
Replace all 257~devel versions with 257
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Jan 23, 2025
1 parent 71516c0 commit ec29006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ def check_tools(config: Config, verb: Verb) -> None:
if config.unified_kernel_image_profiles:
check_ukify(
config,
version="257~devel",
version="257",
reason="build unified kernel image profiles",
hint=(
"Use ToolsTree=default to download most required tools including ukify automatically"
Expand Down Expand Up @@ -2716,7 +2716,7 @@ def check_tools(config: Config, verb: Verb) -> None:
and config.secure_boot_auto_enroll
and (
not config.find_binary("bootctl")
or systemd_tool_version("bootctl", sandbox=config.sandbox) < "257~devel"
or systemd_tool_version("bootctl", sandbox=config.sandbox) < "257"
)
):
check_tool(config, "sbsiglist", reason="set up systemd-boot secure boot auto-enrollment")
Expand All @@ -2733,7 +2733,7 @@ def check_tools(config: Config, verb: Verb) -> None:
config,
"systemd-sysupdate",
"/usr/lib/systemd/systemd-sysupdate",
version="257~devel",
version="257",
reason="Update the host system with systemd-sysupdate",
)

Expand Down
4 changes: 2 additions & 2 deletions mkosi/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def install_systemd_boot(context: Context) -> None:
bootctlver = systemd_tool_version("bootctl", sandbox=context.sandbox)

if want_bootctl_auto_enroll := (
context.config.secure_boot and context.config.secure_boot_auto_enroll and bootctlver >= "257~devel"
context.config.secure_boot and context.config.secure_boot_auto_enroll and bootctlver >= "257"
):
cmd += ["--secure-boot-auto-enroll=yes"]

Expand All @@ -695,7 +695,7 @@ def install_systemd_boot(context: Context) -> None:
context.root / shim_second_stage_binary(context),
)

if context.config.secure_boot and context.config.secure_boot_auto_enroll and bootctlver < "257~devel":
if context.config.secure_boot and context.config.secure_boot_auto_enroll and bootctlver < "257":
assert context.config.secure_boot_key
assert context.config.secure_boot_certificate

Expand Down

0 comments on commit ec29006

Please sign in to comment.