From 5a5309e23ad7f1a0c1c623dc20480dfe7c7c10fd Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 24 Jun 2022 02:57:00 +0100 Subject: [PATCH] add task to kill systemd-timesyncd and enable chrony ....otherwise DietPi has issues if we ever want to use dietpi-software it seems --- src/steps-config/100-chrony.sh | 3 +++ src/steps-postinstall/100-chrony.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 src/steps-config/100-chrony.sh create mode 100755 src/steps-postinstall/100-chrony.sh diff --git a/src/steps-config/100-chrony.sh b/src/steps-config/100-chrony.sh new file mode 100755 index 0000000..71a7ffc --- /dev/null +++ b/src/steps-config/100-chrony.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +queue_apt_install "chrony"; diff --git a/src/steps-postinstall/100-chrony.sh b/src/steps-postinstall/100-chrony.sh new file mode 100755 index 0000000..d867411 --- /dev/null +++ b/src/steps-postinstall/100-chrony.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +task_begin "Stopping systemd-timesyncd"; +systemctl stop systemd-timesyncd +systemctl disable systemd-timesyncd +systemctl mask systemd-timesyncd +task_end 0; + +task_begin "Starting and enabling chrony"; +systemctl enable --now chrony +task_end "$?";