From 70cbb6df6e04e1cbec52eba1328c12f7ba5b95a3 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 5 Oct 2024 18:43:22 +0200 Subject: [PATCH] Mesa-vpu: we also need to have conditions in the install part or there is no point + resolve small typo --- extensions/mesa-vpu.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/mesa-vpu.sh b/extensions/mesa-vpu.sh index 12e421c33..0e647adf7 100644 --- a/extensions/mesa-vpu.sh +++ b/extensions/mesa-vpu.sh @@ -9,7 +9,7 @@ function extension_prepare_config__3d() { # Silently deny old releases which are not supported but are still in the system [[ "${RELEASE}" =~ ^(bullseye|buster|focal)$ ]] && return 0 - # Silently deny on minimal CLI images + # Deny on minimal CLI images if [[ "${BUILD_MINIMAL}" == "yes" ]]; then display_alert "Extension: ${EXTENSION}" "skip installation in minimal images" "warn" return 0 @@ -38,6 +38,12 @@ function post_install_kernel_debs__3d() { # Silently deny old releases which are not supported but are still in the system [[ "${RELEASE}" =~ ^(bullseye|buster|focal)$ ]] && return 0 + # Deny on minimal CLI images + if [[ "${BUILD_MINIMAL}" == "yes" ]]; then + display_alert "Extension: ${EXTENSION}" "skip installation in minimal images" "warn" + return 0 + fi + # some desktops doesn't support wayland [[ "${DESKTOP_ENVIRONMENT}" == "xfce" || "${DESKTOP_ENVIRONMENT}" == "i3-wm" ]] && return 0