From 67b8419ae9616c74f88ff761de5f338503323801 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Tue, 14 Nov 2023 16:18:12 +0100 Subject: [PATCH] Use 'uname -m' to get machine architecture instead of 'uname -i' uname -i returns unknown. Resolves: rhbz#2248930 --- pyanaconda/modules/payloads/payload/dnf/installation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyanaconda/modules/payloads/payload/dnf/installation.py b/pyanaconda/modules/payloads/payload/dnf/installation.py index 222cceebb58f..c94ca6f7a26c 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 = util.execWithCapture("uname", ["-m"]).strip().replace("'", "") releasever = util.get_os_release_value("VERSION_ID", sysroot=self._sysroot) or "" # Import GPG keys to RPM database.