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

Better error message for unprivileged bootc usroverlay #979

Open
LukeShortCloud opened this issue Dec 18, 2024 · 3 comments
Open

Better error message for unprivileged bootc usroverlay #979

LukeShortCloud opened this issue Dec 18, 2024 · 3 comments

Comments

@LukeShortCloud
Copy link

The error message for running bootc usroverlay as a non-root user does not make much sense.

$ bootc usroverlay
error: Read-only file system
$ sudo bootc usroverlay
Development mode enabled.  A writable overlayfs is now mounted on /usr.
All changes there will be discarded on reboot.

Perhaps it can suggest running as the root user instead.

There are also two spaces after the first sentence in the usroverlay message. I'm not sure if that's intentional or not.

@LukeShortCloud
Copy link
Author

bootc image copy-to-storage has a better message. The important part is:

Querying root privilege: This command requires root privileges

@allisonkarlitskaya
Copy link
Contributor

This is just a wrapper around the ostree admin unlock command and the error message comes from there. We could try to check in bootc if we're root before calling ostree, but this is probably better fixed in ostree itself.

@LukeShortCloud
Copy link
Author

Thank you for the insight!

Should I move this GitHub Issue over to https://github.com/ostreedev/ostree then?

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

No branches or pull requests

2 participants