-
Notifications
You must be signed in to change notification settings - Fork 5
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
overlayfs-setup: Fallback to read only mount when overlay not supported #417
Conversation
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.
LGTM.
I wonder what happens if you have both rw
and ro
in the mount options. Which one wins? Is it the last one specified? If so the mount flag change could be simplified to unconditionally appending ,ro
.
I'm not sure. I think probably last one wins and just appending was my first thought. Lemme try that out... |
Yeah, that seems to work. I added an override to a test mount unit that set I'll change that since the mount option editing was definitely my least favorite part of this patch. |
Oh, actually it is mount(8). I ran |
Overlayfs doesn't support using case insensitive filesystems such as vfat and exfat as a lower directory. Change the mount to read only so changes can't be made there. In theory this would simply be `mount -o remount,ro`. Unfortunately, if systemd has setup an automount, autofs is not our friend. In that case, the mount options need to be persisted into the mount unit so that a subsequent remounting retains the ro option. https://phabricator.endlessm.com/T35641
8bd6208
to
fff1cfe
Compare
Updated now to unconditionally append |
Overlayfs doesn't support using case insensitive filesystems such as vfat and exfat as a lower directory. Change the mount to read only so changes can't be made there.
In theory this would simply be
mount -o remount,ro
. Unfortunately, if systemd has setup an automount, autofs is not our friend. In that case, the mount options need to be persisted into the mount unit so that a subsequent remounting retains the ro option.https://phabricator.endlessm.com/T35641