From 09bd05dfef9ee624671fea052b17aa5610653555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Mon, 29 Oct 2018 18:53:48 +0100 Subject: [PATCH] [postcfg] fix ucode removal --- src/modules/postcfg/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 5f0c4d4ad..133f29d61 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -20,6 +20,7 @@ # along with Calamares. If not, see . import libcalamares +import subprocess from shutil import copy2 from distutils.dir_util import copy_tree @@ -77,7 +78,7 @@ class ConfigController: target_env_call(["pacman", "-Syy"]) # Remove unneeded ucode - cpu_ucode = target_env_call(["hwinfo", "--cpu", "|", "grep", "Vendor:", "-m1", "|", "cut", "-d\'\"\'", "-f2"]) + cpu_ucode = subprocess.getoutput("hwinfo --cpu | grep Vendor: -m1 | cut -d\'\"\' -f2") if cpu_ucode == "AuthenticAMD": self.remove_pkg("intel-ucode", "boot/intel-ucode.img") elif cpu_ucode == "GenuineIntel":