-
Notifications
You must be signed in to change notification settings - Fork 305
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
ostree admin
fails if /ostree/deploy
has mtime 0
#3022
Comments
Maybe relevant to mention: It's booting using systemd-boot (despite this not being officially supported, as documented here). |
I've made some progress in debugging this: inside |
What does |
Hi @jlebon, oh, yeah, has not occurred to me.
I think this is because in Garden Linux we want images to be reproducible which is why the timestamp is set to 0 on purpose when creating the filesystems.. Probably that's why the check is true.. |
Okay, I've verified that this is the issue. I've learned that our tooling for making filesystems can set an arbitrary timestamp, and if I set it to a non-zero timestamp the issue does not occur. This is the commit that mitigates the issue The commit before that allows to reproduce the issue, if that is relevant to anyone. That's good enough for my poc use-case, but maybe we should still leave this issue open if it makes sense to make this condition more robust for such cases? |
ostree admin
fails if /ostree/deploy
has mtime 0
It makes sense to me. I've retitled the issue. |
Ironically we break if the timestamp there is zero. Closes: ostreedev#3022 Signed-off-by: Colin Walters <[email protected]>
Ironically we break if the timestamp there is zero. Closes: ostreedev#3022 Signed-off-by: Colin Walters <[email protected]>
Ironically we break if the timestamp there is zero. Closes: ostreedev#3022 Signed-off-by: Colin Walters <[email protected]>
Hi everyone, I have an issue that seems hard to describe, I'll do my best to explain what I did:
I'm building a debian-based OSTree system.
I'm using the ostree package from debian testing.
My system does boot successfully and it looks good on the first sight.
I can run
ostree
commands like:But as soon as I'm trying to run any of the
ostree admin
subcommands, I get an error because of a failed assertion:This does seem to happen with any sub-command of
ostree admin
.It looks like
loadstate
is only assigned theOSTREE_SYSROOT_LOAD_STATE_LOADED
value in a single location in ostree-sysroot.cI'm not sure where this is supposed to be called.
I've tried to trace the function calls, and the most likely chain seems to be this:
I would expect this to happen at image build time when I call
ostree admin deploy
, but it does not look like this.Verbose output of
ostree admin deploy
does not show any hint of an issue, here is an abbreviated output of that:Can someone help me figure out why this assertion is failing? At what point is
loadstate
supposed to be set toOSTREE_SYSROOT_LOAD_STATE_LOADED
?The text was updated successfully, but these errors were encountered: