Repository navigation
os/v3/puppy: read the hardware clock as UTC, so a boot does not run 4 h ahead until NTP (engine#3287) - #3308
Merged
Merged
Conversation
… h ahead until NTP (engine#3287) rc.country's quiet path, `set_hwclock_type -q --hctosys`, takes the RTC's meaning from /etc/clock and the base SFS ships HWCLOCKTIME=localtime; with /etc/localtime -> America/Moncton it read the UTC RTC as Atlantic time. Measured on the AI MAX+ 395 (c35 installed): every boot 4 h ahead until NTP, /data/logs naming the 14:12-14:25Z boots 18:12-18:25Z, and 1bit-logs' name-ordered prune evicting the real newer boot directories (the ones from around the c35 installer's reboot freeze). container-build.sh now passes `utc` on both set_hwclock_type calls and refuses the build if either still leaves the type to /etc/clock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
6 of 12 tasks
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
enabled auto-merge (squash)
November 22, 2026 15:15
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 22, 2026
…follow-up, engine#3287) (#3329) #3308 fixed rc.country in container-build.sh (the woof path). rc.country is a base file, not an embed/ one, so a cut patched from a released base (BASE=) still shipped the base's set_hwclock_type --hctosys under HWCLOCKTIME=localtime: every boot 4 h ahead on an RTC that holds UTC, and 1bit-logs pruned the real boots. BASE mode now takes the base's rc.country, applies the same two seds and REFUSED guard, and patches it in. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3287. Found while looking for the logs from the c35 installer's reboot freeze.
Cause. In
rc.country, the quiet path runs/usr/sbin/set_hwclock_type -q --hctosys, which reads whether the RTC holds local time or UTC from/etc/clock. The base SFS shipsHWCLOCKTIME=localtime, and the embed sets/etc/localtime -> America/Moncton, so the RTC, which holds UTC, was read as Atlantic time.Measured on the AI MAX+ 395 (c35 installed, 22 Nov):
hwclock -rprinted 14:57 (the RTC read as local time) andhwclock -r -uprinted 10:57 (read as UTC, which is right)./data/logsdirectories for the 14:12–14:25Z boots are named20261122T1812..1825. Because1bit-logs prunekeeps the five newest names, those skewed names pushed out the real newer boot directories, including the ones from around the freeze.sudo /usr/sbin/set_hwclock_type -q utc --hctosyson the box: rc=0, system clock unchanged (15:05:39),/etc/clocknowHWCLOCKTIME='utc'.Change.
container-build.shpassesutcto bothset_hwclock_type ... --hctosyscalls inrc.country. The build is refused if the patched line is missing or if any call still leaves the clock type to/etc/clock.set_hwclock_typewrites the type back to/etc/clockon every boot, so an installed system whose save layer still holds the oldlocaltimecopy is corrected too.No new test script. The build's own REFUSED guards check the result, the same way as the existing rc.country edits in this file. Not yet run through a full image build or a boot of a new image; it is next to test on the next stick.
scripts/pre-pr-checks.sh --base origin/main: 16 green, 4 skipped.🤖 Generated with Claude Code