From 517c1ed2dc57ddcb2cd75019043bd0dc3cbdc8b9 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 7 Jun 2024 21:20:30 -0700 Subject: [PATCH] Fix real-ucode condition Signed-off-by: Tommy --- Fedora-Server-40.sh | 2 +- Fedora-Workstation-40.sh | 2 +- RHEL-9.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index 16a55cd..50fe4f0 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -158,7 +158,7 @@ fi # Setup real-ucode MACHINE_TYPE=$(uname -m) -if [ "$virtualization" = 'none' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then +if [ "$virtualization" = 'none' ] && [ "${MACHINE_TYPE}" == 'x86_64' ]; then sudo dnf install -y 'https://divested.dev/rpm/fedora/divested-release-20231210-2.noarch.rpm' sudo sed -i 's/^metalink=.*/&?protocol=https/g' /etc/yum.repos.d/divested-release.repo sudo dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware diff --git a/Fedora-Workstation-40.sh b/Fedora-Workstation-40.sh index 6fe0f89..32f84c0 100644 --- a/Fedora-Workstation-40.sh +++ b/Fedora-Workstation-40.sh @@ -239,7 +239,7 @@ else fi # Setup real-ucode -if [ "$virtualization" = 'none' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then +if [ "$virtualization" = 'none' ] && [ "${MACHINE_TYPE}" == 'x86_64' ]; then sudo dnf install -y 'https://divested.dev/rpm/fedora/divested-release-20231210-2.noarch.rpm' sudo sed -i 's/^metalink=.*/&?protocol=https/g' /etc/yum.repos.d/divested-release.repo sudo dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware diff --git a/RHEL-9.sh b/RHEL-9.sh index 4af82f4..1a1a64b 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -188,7 +188,7 @@ fi # Setup real-ucode MACHINE_TYPE=$(uname -m) -if [ "$virtualization" = 'none' ] || [ "${MACHINE_TYPE}" == 'x86_64' ]; then +if [ "$virtualization" = 'none' ] && [ "${MACHINE_TYPE}" == 'x86_64' ]; then sudo dnf install -y 'https://divested.dev/rpm/fedora/divested-release-20231210-2.noarch.rpm' sudo sed -i 's/^metalink=.*/&?protocol=https/g' /etc/yum.repos.d/divested-release.repo sudo dnf config-manager --save --setopt=divested.includepkgs=divested-release,real-ucode,microcode_ctl,amd-ucode-firmware