Skip to content

[Trixie] Add hwclock binary#148

Closed
vivekrnv wants to merge 1 commit intomasterfrom
add_hwclock
Closed

[Trixie] Add hwclock binary#148
vivekrnv wants to merge 1 commit intomasterfrom
add_hwclock

Conversation

@vivekrnv
Copy link
Owner

@vivekrnv vivekrnv commented Feb 2, 2026

Why I did it

hwclock is not installed by default on trixie

And we are seeing following errors in chrony service

sonic INFO systemd[1]: Starting chrony.service - chrony, an NTP client/server...
sonic INFO chrony-config.sh[1148150]: hwclock --show failed, attempting hwclock --systohc...
sonic INFO chrony-config.sh[1148212]: /usr/bin/chrony-config.sh: line 6: hwclock: command not found
Work item tracking
  • Microsoft ADO (number only):

How I did it

root@sonic:/home/admin# apt-get update &&  apt-get install util-linux-extra -y

root@sonic:/home/admin# hwclock --show
2026-02-02 21:52:27.236407+00:00

root@sonic:/home/admin# systemctl start chrony

root@sonic:/home/admin# systemctl status chrony.service
Feb 02 21:52:40 sonic systemd[1]: Starting chrony.service - chrony, an NTP client/server...
Feb 02 21:52:41 sonic chronyd-starter.sh[970986]: Starting NTP server in default-vrf
Feb 02 21:52:41 sonic chronyd[970992]: chronyd version 4.6.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Feb 02 21:52:42 sonic chronyd[970992]: Timezone right/UTC failed leap second check, ignoring
Feb 02 21:52:42 sonic chronyd[970992]: Frequency -933.372 +/- 0.066 ppm read from /var/lib/chrony/chrony.drift
Feb 02 21:52:42 sonic chronyd[970992]: Loaded seccomp filter (level 1)
Feb 02 21:52:42 sonic systemd[1]: Started chrony.service - chrony, an NTP client/server.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Vivek Reddy <[email protected]>
@vivekrnv vivekrnv closed this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants