From 6cca65d01344682bf8b1268a14cb4da03b84da6c Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 17 Aug 2023 10:15:00 +0200 Subject: [PATCH] Set --no-variables when we invoke bootctl We already don't install variables because we're operating on a root directory, but if we set --no-variables we don't get warnings from bootctl about it. --- mkosi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 3b2fd4d5a..0737c7462 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -507,7 +507,7 @@ def install_systemd_boot(state: MkosiState) -> None: die("One of sbsign or pesign is required to use SecureBoot=") with complete_step("Installing boot loader…"): - run(["bootctl", "install", "--root", state.root, "--all-architectures"], + run(["bootctl", "install", "--root", state.root, "--all-architectures", "--no-variables"], env={"SYSTEMD_ESP_PATH": "/efi"}) if state.config.secure_boot: -- 2.47.2