-
Notifications
You must be signed in to change notification settings - Fork 221
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
src/create: Handle read-only /boot #712
src/create: Handle read-only /boot #712
Conversation
Build succeeded.
|
In the future, we will likely take inspiration from https://github.com/cgwalters/coretoolbox and instead of cherry-picking parts of the host filesystem mount the whole To explain, this change would allow us to make the code for the |
CoreOS recently made /boot read-only[0]. This caused an issue with starting containers because /boot was mounted only with option rslave but missed the ro option. This caused a permission issue. This scenario is very similar to the one with /usr on Fedora Silverblue. The solution for this is to check mount options of the path and check if it uses the rw option or ro and then add it to the mount options in the --volume option in 'podman create'. Fixes: coreos/fedora-coreos-tracker#734 [0] coreos/fedora-coreos-config@1de21ff containers#712
c3bd4ce
to
e61aa47
Compare
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this and getting it merged! One minor observation:
CoreOS recently made /boot read-only[0]. This caused an issue with starting containers because /boot was mounted only with option rslave but missed the ro option. This caused a permission issue.
This scenario is very similar to the one with /usr on Fedora Silverblue. The solution for this is to check mount options of the path and check if it uses the rw option or ro and then add it to the mount options in the --volume option in 'podman create'.
Fixes: coreos/fedora-coreos-tracker#734
coreos/fedora-coreos-config@1de21ff
Situation on CoreOS
This, sadly, does not fix existing containers on CoreOS because the configuration of existing containers can not be changed. The only way to get this fix is to recreate toolboxes.