From: Daan De Meyer Date: Mon, 5 Feb 2024 08:47:16 +0000 (+0100) Subject: Skip first boot settings if systemd-firstboot is not installed X-Git-Tag: v21~72^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b59753f7c52f3971a2857e3aaffa8cfb53874d85;p=thirdparty%2Fmkosi.git Skip first boot settings if systemd-firstboot is not installed --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index ac7f2e8ab..8069d6f4d 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2461,6 +2461,10 @@ def run_firstboot(context: Context) -> None: if context.config.overlay or context.config.output_format.is_extension_image(): return + if not find_binary("systemd-firstboot", root=context.config.tools()): + logging.info("systemd-firstboot is not installed, not applying first boot settings") + return + password, hashed = context.config.root_password or (None, False) if password and not hashed: password = run(["openssl", "passwd", "-stdin", "-6"],