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

Unbreak 'create' on Silverblue #276

Merged
merged 1 commit into from Sep 26, 2019

Conversation

debarshiray
Copy link
Member

Podman defaults to bind-mounting locations as read-write when neither
'rw' nor 'ro' is explicitly specified.

On Silverblue /usr is mounted read-only on the host. Therefore, it's
not possible to bind-mount it as read-write inside the toolbox
container.

It turns out that Podman doesn't downgrade the default mount flag to
read-only when the source location is such, and this breaks creating
new toolbox containers on Silverblue. See:
containers/podman#4061

Fallout from d63b0a9

debarshiray referenced this pull request Sep 26, 2019
Podman defaults to bind-mounting locations as read-write when neither
'rw' nor 'ro' is explicitly specified.

On Silverblue /usr is mounted read-only on the host. Therefore, it's
not possible to bind-mount it as read-write inside the toolbox
container.

It turns out that Podman doesn't downgrade the default mount flag to
read-only when the source location is such, and this breaks creating
new toolbox containers on Silverblue. See:
containers/podman#4061

Fallout from d63b0a9

https://github.com/debarshiray/toolbox/pull/276
@debarshiray debarshiray force-pushed the wip/rishi/silverblue-mount-usr-ro branch from ae2c290 to 27707dc Compare September 26, 2019 18:05
Podman defaults to bind-mounting locations as read-write when neither
'rw' nor 'ro' is explicitly specified.

On Silverblue /usr is mounted read-only on the host. Therefore, it's
not possible to bind-mount it as read-write inside the toolbox
container.

It turns out that Podman doesn't downgrade the default mount flag to
read-only when the source location is such, and this breaks creating
new toolbox containers on Silverblue. See:
containers/podman#4061

Fallout from d63b0a9

https://github.com/debarshiray/toolbox/pull/276
@debarshiray debarshiray force-pushed the wip/rishi/silverblue-mount-usr-ro branch from 27707dc to 32bd215 Compare September 26, 2019 18:22
@debarshiray debarshiray merged commit 32bd215 into master Sep 26, 2019
@debarshiray debarshiray deleted the wip/rishi/silverblue-mount-usr-ro branch September 26, 2019 20:22
debarshiray referenced this pull request Feb 15, 2021
This is meant to alleviate some of the pain of not being able to modify
the list of bind mounts once a toolbox container has been created. For
some cases, especially where read-only access is enough, one can get
by with setting up symbolic links inside the toolbox container.

Based on an idea from Colin Walters.

https://github.com/debarshiray/toolbox/pull/264
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.

None yet

1 participant