From 96ac1dcec76e9af65150c4c2c2e5c88a3191504b Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Wed, 8 Dec 2021 21:18:14 +0100 Subject: [PATCH] Install systemd-timesyncd explicitly (fixes: #58). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It used to be pulled this way (up to Bullseye), via systemd: Depends: […] systemd-timesyncd | time-daemon […] Starting with Bookworm, this was downgraded to: Recommends: […] systemd-timesyncd | time-daemon Install it all the time: NTP support is important on Raspberry Pi devices, which usually don't feature an RTC. But be careful since Buster had systemd itself provide that feature (no separate systemd-timesyncd package yet). Thanks, David Tomaschik! --- generate-recipe.py | 7 +++++++ raspi_master.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/generate-recipe.py b/generate-recipe.py index a8f428f..a5cbf7b 100755 --- a/generate-recipe.py +++ b/generate-recipe.py @@ -122,6 +122,12 @@ if suite == 'buster': else: touch_machine_id = '' +# Buster shipped timesyncd directly into systemd: +if suite == 'buster': + systemd_timesyncd = 'systemd' +else: + systemd_timesyncd = 'systemd-timesyncd' + ### Write results: @@ -153,6 +159,7 @@ with open('raspi_master.yaml', 'r') as in_file: .replace('__LINUX_IMAGE__', linux) \ .replace('__DTB__', dtb) \ .replace('__SECURITY_SUITE__', security_suite) \ + .replace('__SYSTEMD_TIMESYNCD__', systemd_timesyncd) \ .replace('__RASPI_FIRMWARE__', raspi_firmware) \ .replace('__WIRELESS_FIRMWARE__', wireless_firmware) \ .replace('__SERIAL_CONSOLE__', serial) \ diff --git a/raspi_master.yaml b/raspi_master.yaml index 95ffe8a..ce9f1aa 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -79,6 +79,7 @@ steps: - parted - ssh - wpasupplicant + - __SYSTEMD_TIMESYNCD__ - __LINUX_IMAGE__ - __RASPI_FIRMWARE__ - __WIRELESS_FIRMWARE__