From 4665fb96a2a00c9ab6c2db9b4396994fd93ad209 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 Feb 2022 09:07:02 -0500 Subject: [PATCH] Fix relative hostpath for mismatched build platform Relative path was erroneously resulting in the host system being consulted rather than the target. --- imgutil/imgutil | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgutil/imgutil b/imgutil/imgutil index 3eeaa97e..b7e0b484 100644 --- a/imgutil/imgutil +++ b/imgutil/imgutil @@ -908,6 +908,8 @@ def fingerprint_host_el(args, hostpath='/'): import rpm except ImportError: return None + if hostpath[0] != '/': + hostpath = os.path.join(os.getcwd(), hostpath) ts = rpm.TransactionSet(hostpath) rpms = ts.dbMatch('provides', 'system-release') for inf in rpms: