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: Change switch to give more useful error/info on non-bootc system #554

Closed
vrothberg opened this issue May 21, 2024 · 0 comments · Fixed by #557
Closed

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

vrothberg opened this issue May 21, 2024 · 0 comments · Fixed by #557
Labels
area/cli Related to the client/CLI enhancement New feature or request triaged This looks like a valid issue

Comments

@vrothberg
Copy link
Member

openat(AT_FDCWD, "/run/ostree-booted", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

When running bootc switch on a non-ostree system it errors out with

ERROR Switching: Acquiring sysroot: No such file or directory

I think bootc can help the user a bit more and maybe guide them into installing the image to disk rather than switching.

Cc: @cgwalters

@cgwalters cgwalters added enhancement New feature or request triaged This looks like a valid issue area/cli Related to the client/CLI labels May 21, 2024
@cgwalters cgwalters changed the title bootc switch: ERROR Switching: Acquiring sysroot: No such file or directory cli: Change switch to give more useful error/info on non-bootc system May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to the client/CLI enhancement New feature or request triaged This looks like a valid issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants