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.

@github-actions github-actions bot added the area/prepare-root Issue relates to ostree-prepare-root label Dec 21, 2023
@ericcurtin ericcurtin force-pushed the explicit-sysroot-rw-ro-log branch from 106db08 to f0b38ce Compare December 21, 2023 17:17
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 <[email protected]>
@ericcurtin ericcurtin force-pushed the explicit-sysroot-rw-ro-log branch from f0b38ce to e5498b9 Compare December 21, 2023 17:28
@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.

3 participants