-
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
prepare-var: Do not remount stateroot var in-place, and unmount the temporary var mount after real /var is mounted #3363
base: main
Are you sure you want to change the base?
Conversation
Hi @ruihe774. Thanks for your PR. I'm waiting for a ostreedev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
Thanks for splitting out preparatory patches like this, it's really helpful for review. At a very high level what you're saying sounds plausible, but there are quite an array of details here. In the immediate term it looks like this breaks a whole lot of the CoreOS tests (the logs are currently annoying to get at - go to the jenkins instance and download Anyways the main failure is:
The ostree initramfs handling is already quite complex on its own, but Ignition is also a huge amount of complexity in the initramfs too, and it's not surprising that a change like this would break the combination of the two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as requested-changes because of the CI failure at least and to clear the immediate needs-review flag.
/ok-to-test |
This is split out of some merge-ready commits in #3358.
Currently, in
ostree-prepare-root
, we create a read-writable bind-mount of/sysroot/ostree/deploy/$stateroot/var
in-place, and in a unit generated byostree-system-generator
, it is then bind-mounted to/var
. This approach causes some problem:/sysroot/ostree/deploy/$stateroot/var
.ostree-system-generator
to get the path to stateroot./sysroot/ostree/deploy/$stateroot/var
is not unmounted afterwards, polluting the global mount namespace.This PR tries to solving these problem by instead of bind-mounting var in-place, bind-monting it to
/run/ostree/.private/var
inostree-prepare-root
. In this way,ostree-system-generator
can bind-mount a fixed path to/var
, and the mount is not necessary to be made slave+shared. Also,ostree-system-generator
creates a serviceostree-unmount-temp-var.service
that unmounts the temporary mount of var after real /var is mounted.