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

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