]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Don't use the full output path when calculating the output hash
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 5 Feb 2024 16:13:02 +0000 (17:13 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 8 Feb 2024 09:28:32 +0000 (10:28 +0100)
This avoids having to specify the exact same output format when running
mkosi ssh to get the same vsocK CID.

mkosi/qemu.py

index 11a50bf43bcb92df29e2f04ee28d7e9e7f9b8fca..1e1659abdcb9ebf4f258c681bb88a2a9d643212c 100644 (file)
@@ -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())