Skip to content

fix(snapshot): make v1 rootfs timestamps portable - #1197

Draft
Koh0920 wants to merge 1 commit into
nightlyfrom
fix/0.7-v1-touch-portability
Draft

fix(snapshot): make v1 rootfs timestamps portable#1197
Koh0920 wants to merge 1 commit into
nightlyfrom
fix/0.7-v1-touch-portability

Conversation

@Koh0920

@Koh0920 Koh0920 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

What changed

  • generate the v1 guest-rootfs timestamp normalization command with POSIX/BSD-compatible touch -t
  • force UTC so the fixed timestamp has the same meaning on every producer host
  • reject the previous GNU-only touch -d spelling in the focused unit test

Why

The v1 build producer runs this export script on the host. macOS ships BSD touch, which does not accept GNU -d @1, so otherwise valid Capsule builds failed before an execution lock and Ready-State image could be minted.

Impact

macOS and Linux producers now use the same fixed epoch while preserving the existing execution contract and guest image policy.

Validation

  • cargo test -p snapshot the_pack_pins_what_it_can_of_the_artifact_without_claiming_byte_equality -- --nocapture
  • built and verified multiple v1 Ready-State Capsule images on macOS using the patched producer

@Koh0920
Koh0920 force-pushed the fix/0.7-v1-touch-portability branch from 65c62b0 to 43b0044 Compare July 28, 2026 12:09
@Koh0920
Koh0920 changed the base branch from main to nightly July 28, 2026 12:09
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.

1 participant