Skip to content

Wait for NTP before snapshotting and document dual-boot RTC - #13629

Open
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-dualboot-rtc-e0d3
Open

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-dualboot-rtc-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #13367

A Windows local-time hardware clock leaves Linux ahead until NTP syncs. Snapshots taken then get future stamps and limine-snapper-sync hides later entries.

Change

  • Wait briefly for NTP before snapshotting
  • Document the dual-boot RTC convention

Test plan

  • Dual-boot with Windows local RTC; after boot, new snapshots should appear in Limine once NTP is synced

A Windows local-time hardware clock leaves Linux ahead until NTP syncs.
Snapshots taken then get future stamps and limine-snapper-sync hides
later entries. Wait briefly for NTP and document the RTC convention
(omacom#13367).

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@jandrusk

jandrusk commented Oct 7, 2026

Copy link
Copy Markdown

Thanks for this. A few things changed since it was opened.

  • Upstream fixed the menu side. As noted on Dual boot with Windows: a clock in local time keeps new snapshots out of the Limine menu for hours #13367, limine-snapper-sync fixed this in 6865e06d: it now compares snapshot IDs when the newest timestamp is older than the stored one. So once that release reaches Arch, a future-dated snapshot no longer hides later entries, and the snapshot wait may not be needed at all.
  • The wait costs every unsynced update 15 s. omarchy-snapshot create runs on every omarchy update, so any machine where NTPSynchronized isn't yes (offline, timesyncd disabled, a corporate time source) waits 15 s and prints a warning each time. And on a dual-boot machine that's been up for a while, the clock is already synced, so the wait rarely catches the case it targets.
  • The test doesn't exercise the script. It redefines wait_for_clock_sync inline and tests that copy, so it would pass with the wait removed from bin/omarchy-snapshot.
  • The docs duplicate Document the hardware clock convention for dual boot #13472 (your docs-only PR for the same issue). It would be simpler to keep the manual change in one place. Also, systemd warns against timedatectl set-local-rtc 1, so I'd lead with the Windows RealTimeIsUniversal option.

My suggestion: keep the docs in #13472, and drop the snapshot wait unless the upstream fix turns out not to cover it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dual boot with Windows: a clock in local time keeps new snapshots out of the Limine menu for hours

4 participants