chore(hardware-setup): Check image flavor instead of name for separating main/Nvidia

This commit is contained in:
RJ Trujillo 2023-09-06 16:06:02 -06:00
parent 4edac4a5f7
commit 7ead1949fa

View File

@ -82,7 +82,7 @@ elif [[ $IMAGE_NAME =~ "deck" ]]; then
sudo systemctl disable --now batterylimit.service
fi
if [[ $IMAGE_NAME =~ "nvidia" ]]; then
if [[ $IMAGE_FLAVOR = "nvidia" ]]; then
echo "Checking for needed karg changes (Nvidia)"
if [[ ! $KARGS =~ "rd.driver.blacklist" ]]; then
@ -96,7 +96,7 @@ if [[ $IMAGE_NAME =~ "nvidia" ]]; then
if [[ ! $KARGS =~ "nvidia-drm.modeset" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=nvidia-drm.modeset=1"
fi
elif [[ $IMAGE_NAME =~ "main" ]]; then
elif [[ $IMAGE_FLAVOR = "main" ]]; then
echo "Checking for needed karg changes"
if [[ $KARGS =~ "rd.driver.blacklist" ]]; then