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

cli: More environment detection #557

Merged
merged 3 commits into from
May 29, 2024

Conversation

cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented May 22, 2024

cli: Check for container before root

This has bootc upgrade inside a container image give a more useful
error message.

At least one user reran the container as root to try it...


cli: Check for non-ostree container too

Just on general principle.

Signed-off-by: Colin Walters walters@verbum.org


cli: Detect non-ostree and error out earlier

Before we even check for root, verify that we are on an ostree-booted
host.

Signed-off-by: Colin Walters walters@verbum.org


Closes: #554

This has `bootc upgrade` inside a container image give a more useful
error message.

At least one user reran the container as root to try it...

Signed-off-by: Colin Walters <walters@verbum.org>
Just on general principle.

Signed-off-by: Colin Walters <walters@verbum.org>
Before we even check for root, verify that we are on an ostree-booted
host.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters merged commit 99ac4da into containers:main May 29, 2024
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: Change switch to give more useful error/info on non-bootc system
2 participants