Mesa-vpu: we also need to have conditions in the install part or there is no point

+ resolve small typo
This commit is contained in:
Igor Pecovnik
2024-10-05 18:43:22 +02:00
committed by Igor
parent 3c25dde4be
commit 70cbb6df6e

View File

@@ -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