[postcfg] fix ucode removal
This commit is contained in:
parent
1cbeefbf50
commit
09bd05dfef
@ -20,6 +20,7 @@
|
|||||||
# along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
# along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import libcalamares
|
import libcalamares
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from shutil import copy2
|
from shutil import copy2
|
||||||
from distutils.dir_util import copy_tree
|
from distutils.dir_util import copy_tree
|
||||||
@ -77,7 +78,7 @@ class ConfigController:
|
|||||||
target_env_call(["pacman", "-Syy"])
|
target_env_call(["pacman", "-Syy"])
|
||||||
|
|
||||||
# Remove unneeded ucode
|
# 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":
|
if cpu_ucode == "AuthenticAMD":
|
||||||
self.remove_pkg("intel-ucode", "boot/intel-ucode.img")
|
self.remove_pkg("intel-ucode", "boot/intel-ucode.img")
|
||||||
elif cpu_ucode == "GenuineIntel":
|
elif cpu_ucode == "GenuineIntel":
|
||||||
|
Loading…
Reference in New Issue
Block a user