diff --git a/pyanaconda/modules/payloads/payload/dnf/installation.py b/pyanaconda/modules/payloads/payload/dnf/installation.py index 222cceebb58f..d5722fd76880 100644 --- a/pyanaconda/modules/payloads/payload/dnf/installation.py +++ b/pyanaconda/modules/payloads/payload/dnf/installation.py @@ -360,7 +360,7 @@ def run(self): # Get substitutions for variables. # TODO: replace the interpolation with DNF once possible - basearch = util.execWithCapture("uname", ["-i"]).strip().replace("'", "") + basearch = os.uname().machine releasever = util.get_os_release_value("VERSION_ID", sysroot=self._sysroot) or "" # Import GPG keys to RPM database.