-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support readonly /boot
mount
#136
Comments
With composefs enabled, the entire file-system will be readonly, so we need to ensure the transient rootfs in enabled too. |
/boot is not a composefs, so it is unrelated. (Also composefs is an overlay, there is still an underlying writable root)
…On Wed, Mar 27, 2024, at 3:41 AM, Sayan Paul wrote:
With composefs enabled, the entire file-system will be readonly, so we
need to ensure the transient rootfs in enabled too.
thoughts? @cgwalters <https://github.com/cgwalters> @jmarrero
<https://github.com/jmarrero>
—
Reply to this email directly, view it on GitHub
<#136 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB3TACH2VR5IKLW3O4IAL3Y2JZ4HAVCNFSM6AAAAABE7KY3NKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGEZTGNBUGY>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@cgwalters I tried the following approach as suggested but seems even if /boot is mounted as rw,
|
It's simpler and less "ad hoc string parsing" to use
At a quick look at the docs for
or so |
(Or probably cleaner, split that out to its own file instead of inline script, or even better make it not shell script) |
yes, figured that out later, applied the similar approach here PR: #146 |
In some image based systems (e.g. ostree/bootc) like (e.g. Fedora CoreOS) we mount
/boot
as read-only by default. The rationale for this is few things should be touching/boot
. Those that do (like ostree) do:This is easy to do with systemd, just add
PrivateMounts=true
to the units for the first part, then in the code check if/boot
is readonly, and if somount -o remount,rw /boot
.The text was updated successfully, but these errors were encountered: