-
Notifications
You must be signed in to change notification settings - Fork 297
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
Track deployment root/inode from prepare root #3164
Conversation
314c034
to
aca3f76
Compare
aca3f76
to
0b16f02
Compare
I tried this, but it didn't seem to work:
The should have been an asterisk, no? |
I tried it with
and it works. |
0b16f02
to
0b6e19d
Compare
OK I've done some more cleanup, and this definitely works with composefs. Enabling transient etc blocks ssh logins in the current cosa qemu bits...fixing that is going to need some reworking of the test suite. |
When we added composefs, it broke the logic for detecting the booted deployment which was previously a direct (device, inode) comparison. So the code there started looking at `etc`. However, that in turns breaks with `etc.transient = true` enabled. Fix all of this by tracking the real deployment directory's (device,inode) that we found in `ostree-prepare-root`, and inject it into the extensible metadata we have in `/run/ostree-booted` which is designed exactly to pass state between the initramfs and the real root. Signed-off-by: Colin Walters <[email protected]>
0b6e19d
to
525a57d
Compare
OK fixed; we had a green CI though before that at least. Not totally sure about waiting for a full cycle again. |
When we added composefs, it broke the logic for detecting the booted
deployment which was previously a direct (device, inode) comparison.
So the code there started looking at
etc
. However, that inturns breaks with
etc.transient = true
enabled.Fix all of this by tracking the real deployment directory's
(device,inode) that we found in
ostree-prepare-root
, and injectit into the extensible metadata we have in
/run/ostree-booted
which is designed exactly to pass state between the initramfs
and the real root.