-
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-root: allow sysroot.readonly=true
with kernel cmdline ro
#3316
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. |
I'm not opposed to this, but I'd like to try a bit harder to reach another design where we can mount the root writable in the initramfs. Let's debate that in the issue #3315 I think to keep it in once place. |
588eeb8
to
5b6d208
Compare
sysroot.readonly=true
with kernel cmdline ro
Does |
Ok. It just works. Feel free to merge it. |
Are there test cases that cover things in initramfs? I think I'd better add some tests to prevent regression. Especially, I have not tried |
Yeah, bind mounts will inherit the writability by default.
There's definitely a coverage gap in some cases; we only test some of this implicitly. I've been meaning to try to make it easier to run ostree-prepare-root outside of a proper initramfs (and boot process), testing it as a container which would dramatically simplify complexity for testing.
I think though your use case in the future is going to be better addressed by adding integrity and measurement at the OS level and not trying to enforce it via drive-specific writability - which gets into the composefs path specifically so we'd effectively be obsoleting the case of "ro with composefs we mount writable later" for example. |
/ok-to-test |
As described in #3315.