fix: Don't explicitly check main when excluding Nvidia

This commit is contained in:
RJ Trujillo 2023-09-23 09:16:49 -06:00
parent 124d2ccfe0
commit 7c30803bec
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ if [[ $IMAGE_FLAVOR = "nvidia" ]]; then
if [[ ! $KARGS =~ "nvidia-drm.modeset" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=nvidia-drm.modeset=1"
fi
elif [[ $IMAGE_FLAVOR = "main" ]]; then
else
echo "Checking for needed karg changes"
if [[ $KARGS =~ "rd.driver.blacklist" ]]; then

View File

@ -67,7 +67,7 @@ screens:
values:
title: AMD Additions
condition:
run: grep -q 'main' <<< $(jq -r '."image-flavor"' < /usr/share/ublue-os/image-info.json)
run: grep -qv 'nvidia' <<< $(jq -r '."image-flavor"' < /usr/share/ublue-os/image-info.json)
show_terminal: true
package_manager: yafti.plugin.run
packages: