siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
130 stars 79 forks source link

iot2050-image-example: Add systemd-timesyncd #335

Closed AsuraZeng closed 1 year ago

AsuraZeng commented 2 years ago

Currently,there is no ntp service by default,so can not sync time automatic.

Using systemd-timesyncd daemon to do the time sync.

Signed-off-by: chao zeng chao.zeng@siemens.com

jan-kiszka commented 2 years ago

I could swear that worked already - otherwise apt update shouldn't work as well (broken clock generally means invalid apt database). But I do not have a box and image in reach to confirm.

AsuraZeng commented 2 years ago

it should work, but my several boards need to use the date modify time every time, otherwise apt update can't be successful.

BaochengSu commented 2 years ago

I could swear that worked already - otherwise apt update shouldn't work as well (broken clock generally means invalid apt database).

+1

AsuraZeng commented 2 years ago

I have checked, the latest version don't have the package systemd-timesyncd. the release image 1.2.2 has this package by default.

perhaps there are some changes on the debian package repo.

jan-kiszka commented 2 years ago

Unlikely as we did not update the major Debian version in between. Unless we happened to pull the package indirectly before, this remains a mystery for now.

AsuraZeng commented 2 years ago

check the systemd changelog. https://metadata.ftp-master.debian.org/changelogs//main/s/systemd/systemd_247.3-7_changelog it has demoted systemd-timesyncd from Depends to Recommends.

BaochengSu commented 2 years ago

Checked with @AsuraZeng , this does not impact the upcoming release since the modification had not happened in the package freezing snapshot.

So my suggestion is to merge it after the upcoming release.

jan-kiszka commented 2 years ago

Good catch - and ack for postponing this.