From: Daan De Meyer Date: Mon, 5 Feb 2024 16:13:02 +0000 (+0100) Subject: Don't use the full output path when calculating the output hash X-Git-Tag: v21~72^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a42e5045393915e2636bda0a0842da206147c732;p=thirdparty%2Fmkosi.git Don't use the full output path when calculating the output hash This avoids having to specify the exact same output format when running mkosi ssh to get the same vsocK CID. --- diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 11a50bf43..1e1659abd 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -91,7 +91,7 @@ class QemuDeviceNode(StrEnum): def hash_output(config: Config) -> "hashlib._Hash": - p = os.fspath(config.output_dir_or_cwd() / config.output_with_compression) + p = os.fspath(config.output_dir_or_cwd() / config.output) return hashlib.sha256(p.encode())