From 5a7be6292a708d263167aee510595be2eb4b4439 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 2 May 2022 16:16:16 +0200 Subject: [PATCH] v8.4 - DietPi-Pre-patches | Backport of: https://github.com/MichaIng/DietPi/commit/ed9b4c0 --- .update/pre-patches | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.update/pre-patches b/.update/pre-patches index 1461218c14..ea0ee3faa9 100755 --- a/.update/pre-patches +++ b/.update/pre-patches @@ -174,5 +174,12 @@ then G_EXEC sed -i 's/rk3328-nanopi-neo3-rev02.dtb/rk3328-nanopi-r2-rev00.dtb/' /boot/armbianEnv.txt fi +# v8.4/v8.5: https://github.com/MichaIng/DietPi/issues/5467 +if (( $G_DIETPI_VERSION_CORE < 8 || ( $G_DIETPI_VERSION_CORE == 8 && $G_DIETPI_VERSION_SUB < 5 ) )) && (( $G_DISTRO > 5 )) && dpkg-query -s systemd-timesyncd &> /dev/null && [[ $(apt-mark showauto systemd-timesyncd) ]] +then + G_DIETPI-NOTIFY 2 'Marking systemd-timesyncd as manually installed to prevent its autoremoval' + G_EXEC apt-mark manual systemd-timesyncd +fi + exit 0 }