From c41c5a1ae579d8bfcb5673b87ac0f1e8d2d53659 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sat, 23 Sep 2023 23:19:09 +0200 Subject: [PATCH] v8.22 - DietPi-Patches | RPi: Update raspberrypi-sys-mods --- .update/patches | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.update/patches b/.update/patches index 3e71ec1c29..7a7eabfae8 100755 --- a/.update/patches +++ b/.update/patches @@ -1412,10 +1412,18 @@ Patch_8_22() [[ $(apt-key --keyring /etc/apt/trusted.gpg list 2> /dev/null) ]] || G_EXEC rm /etc/apt/trusted.gpg fi + # RPi: Update raspberrypi-sys-mods + if (( $G_HW_MODEL < 10 )) && dpkg --compare-versions "$(dpkg-query -Wf '${Version}' raspberrypi-sys-mods 2> /dev/null)" lt-nl 2:20230510-dietpi1 + then + G_DIETPI-NOTIFY 2 'Updating raspberrypi-sys-mods package ...' + G_EXEC_OUTPUT=1 G_EXEC curl -fo package.deb 'https://dietpi.com/downloads/binaries/raspberrypi-sys-mods.deb' + G_EXEC_OUTPUT=1 G_EXEC dpkg -i --force-confdef,confold package.deb + G_EXEC rm package.deb + # Odroid C1: Set kernel packages on hold. We pin them in pre-patches and enforce an automated downgrade, in case, but since v23.02.2 might not be available forever, we should also set them on hold, until we know there is a compatble newer version available: # - https://dietpi.com/forum/t/odroid-c1-not-booting-after-kernel-upgrade/17818 # - https://github.com/MichaIng/DietPi/issues/6616#issuecomment-1730900296 - if (( $G_HW_MODEL == 10 )) + elif (( $G_HW_MODEL == 10 )) then G_DIETPI-NOTIFY 2 'Setting Odroid C1 "current" and "edge" kernel packages on hold' G_EXEC apt-mark hold linux-image-current-meson linux-dtb-current-meson linux-headers-current-meson linux-image-edge-meson linux-dtb-edge-meson linux-headers-edge-meson