From: Daan De Meyer Date: Wed, 19 Apr 2023 19:39:07 +0000 (+0200) Subject: Fail with a clear error if sd-stub is not installed in the image X-Git-Tag: v15~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=106fcb761354b942e00a8364e4bb9e595607253f;p=thirdparty%2Fmkosi.git Fail with a clear error if sd-stub is not installed in the image --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 468a78180..b48f4c319 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -768,7 +768,7 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None: stub = state.root / f"lib/systemd/boot/efi/linux{EFI_ARCHITECTURES[state.config.architecture]}.efi.stub" if not stub.exists(): - die(f"sd-stub not found at {stub.relative_to(state.root)}") + die(f"sd-stub not found at /{stub.relative_to(state.root)} in the image") cmd: list[PathString] = [ shutil.which("ukify") or "/usr/lib/systemd/ukify",