Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make-disk-image: use faketime to get a consistent timestamp #31469

Merged
merged 1 commit into from Nov 10, 2017

Conversation

copumpkin
Copy link
Member

Backporting f5b3f2c to 17.09 because it breaks images built on the release.

I've built images with the new code and tested that they boot, and I've checked that the timestamps in the image are indeed 1. No automated tests for that yet, but maybe someday.

Note that this makes the image generation script noisier for reasons I don't understand yet and couldn't suppress easily.

@edolstra this is the commit I asked you to wait for before you made a new batch of AMIs.

This fixes NixOS#28768 because during an image build, Nix sees bad store
timestamps and attempts to fix them, but can't fix them on a running
system (due to being inside a builder). Since timestamps on the store
are supposed to be 1 anyway, if we fix this, that fixes image building
inside booted images made this way.

Note that this adds quite a bit of noise to the output, because running
`cptofs` under `faketime` causes a bunch of seemingly spurious error
messages and my attempts to suppress them all failed. We'll fix it when
`cptofs` gets a native timestamp preservation feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants