Blame SOURCES/0005-Determine-architecture-via-uname-m.patch

e10a2d
From 52870e8a264653d7921e8a4edff56d4b050614d8 Mon Sep 17 00:00:00 2001
e10a2d
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
e10a2d
Date: Sat, 27 Jan 2018 13:11:36 +0100
e10a2d
Subject: [PATCH 05/21] Determine architecture via 'uname -m'
e10a2d
e10a2d
'uname -p' only gives unknown on x86_64, i386, arm6l (rpi) and aarch64
e10a2d
(scaleways).
e10a2d
---
e10a2d
 virt-what.in | 4 ++--
e10a2d
 1 file changed, 2 insertions(+), 2 deletions(-)
e10a2d
e10a2d
diff --git a/virt-what.in b/virt-what.in
e10a2d
index 29b7b0d..2011ff4 100644
e10a2d
--- a/virt-what.in
e10a2d
+++ b/virt-what.in
e10a2d
@@ -102,9 +102,9 @@ cpuid=$(virt-what-cpuid-helper)
e10a2d
 dmi=$(LANG=C dmidecode 2>&1)
e10a2d
 
e10a2d
 # Architecture.
e10a2d
-# Note for the purpose of testing, we only call uname with -p option.
e10a2d
+# Note for the purpose of testing, we only call uname with -m option.
e10a2d
 
e10a2d
-arch=$(uname -p | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/')
e10a2d
+arch=$(uname -m | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/')
e10a2d
 
e10a2d
 # Check for VMware.
e10a2d
 # cpuid check added by Chetan Loke.
e10a2d
-- 
e10a2d
2.23.0
e10a2d