Skip to content

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

cgwalters added 2 commits May 21, 2024 20:29
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>
@cgwalters cgwalters force-pushed the switch-earlier-error branch from 91db5ea to 5bf05e5 Compare May 22, 2024 00:53
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 force-pushed the switch-earlier-error branch from 5bf05e5 to e20ab16 Compare May 22, 2024 10:31
@cgwalters cgwalters merged commit 99ac4da into bootc-dev:main May 29, 2024
cgwalters added a commit to cgwalters/bootc that referenced this pull request Nov 5, 2024
cgwalters added a commit to cgwalters/bootc that referenced this pull request Nov 6, 2024
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