From 58f5b44f8a8a61100a2212e0b0ae563579f70c4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Sun, 26 Aug 2018 05:06:25 +0200 Subject: [PATCH] [postcfg] add ucode removal --- src/modules/postcfg/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index db2a7504c..ace29f45f 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -76,6 +76,13 @@ class ConfigController: if libcalamares.globalstorage.value("hasInternet"): target_env_call(["pacman", "-Syy"]) + # Remove unneeded ucode + cpu_ucode = target_env_call(["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": + self.remove_pkg("amd-ucode", "boot/amd-ucode.img") + # Remove calamares self.remove_pkg("calamares", "usr/bin/calamares")