Skip to content

Commit

Permalink
Use 'os.uname().machine' to get machine architecture instead of 'unam…
Browse files Browse the repository at this point in the history
…e -i'

uname -i returns unknown.

Resolves: rhbz#2248930
  • Loading branch information
KKoukiou committed Nov 15, 2023
1 parent bed2e8b commit d89e094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyanaconda/modules/payloads/payload/dnf/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d89e094

Please sign in to comment.