Skip to content

Commit

Permalink
v8.22
Browse files Browse the repository at this point in the history
- DietPi-Patches | RPi: Update raspberrypi-sys-mods
  • Loading branch information
MichaIng committed Sep 23, 2023
1 parent 884e9e2 commit c41c5a1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .update/patches
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c41c5a1

Please sign in to comment.