From 3ddb2ee1721f568c3b9340e2dc78bd5b78bf397c Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 31 Jul 2025 00:04:33 +0100 Subject: [PATCH] ukify: fix hwids section reproducibility When there are multiple json files the glob list output is not stable. Sort it before use. Follow-up for 0333b9d5892983efc690d444fb8783624a1ef476 --- src/ukify/ukify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 5bbe9b1ea68..8a8d72429fe 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -1184,7 +1184,7 @@ def pack_strings(strings: set[str], base: int) -> tuple[bytes, dict[str, int]]: def parse_hwid_dir(path: Path) -> bytes: - hwid_files = path.rglob('*.json') + hwid_files = sorted(path.rglob('*.json')) devstr_to_type: dict[str, int] = { 'devicetree': DEVICE_TYPE_DEVICETREE, 'uefi-fw': DEVICE_TYPE_UEFI_FW, -- 2.47.3