hwclock failing on N-oracle BM.Standard2.52 with "No such file or directory"

Bug #2075146 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
In Progress
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://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/2039206/comments/16

Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.