hwclock failing on N-oracle BM.Standard2.52 with "No such file or directory"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
When running the hwclock test on N-oracle BM.Standard2.52, it failed with:
$ /sbin/hwclock --verbose --set --date "2004-10-20 04:10:00"
/bin/bash: line 1: /sbin/hwclock: No such file or directory
This test has passed on other instances on Oracle simply because they're VM instances, and the test got skipped.
Manual test shows /sbin/hwclock does not exist, install util-linux-extra can fix this issue.
However as pointed out in this comment[1] from Robie Basak:
The reason hwclock isn't shipped any more is that Ubuntu now uses systemd's functionality to perform the same task instead. To configure RTC translation between UTC and local time, the primary supported method is now "sudo timedatectl set-local-rtc 0" or "sudo timedatectl set-local-rtc 1". See timedatectl(1) for details (including why '1' is unreliable). Use of hwclock should be considered a deprecated method on newer releases of Ubuntu.
I think we should stop testing this on Noble+ instead.
[1] https:/
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Test disabled on Noble and newer.