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 0333b9d589
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user