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

switchroot: Be explicit about what could cause /sysroot to be ro #3125

Merged
merged 1 commit into from Dec 30, 2023

Conversation

ericcurtin
Copy link
Collaborator

If you don't have rw in the kernel cmdline or have ro in it, often you hit this issue. This is just to be really explicit about that in the error messages so people can check.

If you don't have rw in the kernel cmdline or have ro in it, often you
hit this issue. This is just to be really explicit about that in the
error messages so people can check.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
@ericcurtin
Copy link
Collaborator Author

I do wonder should we make src/switchroot/ostree-prepare-root-static.c and src/switchroot/ostree-prepare-root.c one combined src/switchroot/ostree-prepare-root.h file and just rewrite the functions that are different in separate .c files sometimes.

@ericcurtin
Copy link
Collaborator Author

On a second look the two files have diverged enough to make the above comment redundant.

@cgwalters cgwalters merged commit 888f29a into ostreedev:main Dec 30, 2023
24 checks passed
@ericcurtin ericcurtin deleted the explicit-sysroot-rw-ro-log branch January 1, 2024 21:03
@cgwalters cgwalters mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prepare-root Issue relates to ostree-prepare-root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants