From 9760ad00960f2b54f3c59c5dd0a697148f13d10a Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 19 Aug 2024 12:28:27 +0200 Subject: [PATCH] KDE Neon: hack must be implemented only on Ubuntu Noble / Oracular --- extensions/mesa-vpu.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/mesa-vpu.sh b/extensions/mesa-vpu.sh index 03880ac74614..775f92373c3c 100644 --- a/extensions/mesa-vpu.sh +++ b/extensions/mesa-vpu.sh @@ -153,13 +153,18 @@ function post_install_kernel_debs__3d() { do_with_retries 3 chroot_sdcard_apt_get_install "${pkgs[@]}" # This library gets downgraded - do_with_retries 3 chroot_sdcard apt-mark hold libdav1d7 + if [[ "${RELEASE}" =~ ^(oracular|noble)$ ]]; then + do_with_retries 3 chroot_sdcard apt-mark hold libdav1d7 + fi display_alert "Upgrading Mesa packages" "${EXTENSION}" "info" do_with_retries 3 chroot_sdcard_apt_get dist-upgrade # KDE neon downgrade hack undo - do_with_retries 3 chroot_sdcard apt-mark unhold base-files libdav1d7 + do_with_retries 3 chroot_sdcard apt-mark unhold base-files + if [[ "${RELEASE}" =~ ^(oracular|noble)$ ]]; then + do_with_retries 3 chroot_sdcard apt-mark unhold libdav1d7 + fi # Disable wayland flag for XFCE #if [[ "${DESKTOP_ENVIRONMENT}" == "xfce" ]]; then