Skip to content

Conversation

@gursewak1997
Copy link
Contributor

Add comprehensive documentation for the root.transient-ro option that allows privileged users to create dynamic top-level mountpoints at runtime while keeping the filesystem read-only by default.

@github-actions github-actions bot added documentation control/skip-ci Do not run expensive CI on this job labels Jul 31, 2025
@gursewak1997 gursewak1997 marked this pull request as ready for review July 31, 2025 18:32
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation for the root.transient-ro option that allows privileged users to create dynamic top-level mountpoints at runtime while keeping the filesystem read-only by default.


### Configuration

To enable this feature, add the following to `/etc/ostree/prepare-root.conf`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This section recommends modifying /etc/ostree/prepare-root.conf, while other sections in this document (e.g., for root.transient or composefs) refer to /usr/lib/ostree/prepare-root.conf. While using /etc is correct for host-specific configuration, this difference could be confusing for readers.

It would be helpful to clarify that /etc is for per-machine configuration, and mention that /usr/lib could be used to enable the feature in a base image for all derived systems.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes for bootc we should really only talk about the /usr/lib variant.

Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


### Configuration

To enable this feature, add the following to `/etc/ostree/prepare-root.conf`:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes for bootc we should really only talk about the /usr/lib variant.

@gursewak1997 gursewak1997 force-pushed the add-docs-transient-ro branch from 32927e7 to 214c6f2 Compare July 31, 2025 18:46
@gursewak1997
Copy link
Contributor Author

gursewak1997 commented Jul 31, 2025

/gemini review
Just testing the command here btw.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds clear and comprehensive documentation for the root.transient-ro feature. The new content is well-written and effectively explains the feature's functionality and use cases. I've included a couple of minor suggestions to enhance consistency within the documentation.

@gursewak1997 gursewak1997 force-pushed the add-docs-transient-ro branch from 214c6f2 to 6cdea9e Compare July 31, 2025 18:55
@gursewak1997
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds valuable documentation for the transient-ro feature. The new section is well-structured and provides a good overview, use cases, and an example. My review includes a critical correction to the option name and configuration snippet, which are incorrect as written and would prevent the feature from working. I've also included a few suggestions to improve the clarity and completeness of the documentation.

Comment on lines 236 to 237
[prepare-root]
root.transient-ro = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This configuration example is incorrect and will prevent the feature from working. The transient-ro option should be under the [root] section, not [prepare-root]. This is similar to how the transient option is configured elsewhere in this document.

Suggested change
[prepare-root]
root.transient-ro = true
[root]
transient-ro = true

Add comprehensive documentation for the root.transient-ro option that allows
privileged users to create dynamic top-level mountpoints at runtime while
keeping the filesystem read-only by default.
@gursewak1997 gursewak1997 force-pushed the add-docs-transient-ro branch from 6cdea9e to 4407a37 Compare July 31, 2025 20:45
@gursewak1997 gursewak1997 merged commit 242f076 into bootc-dev:main Jul 31, 2025
27 checks passed
@gursewak1997 gursewak1997 deleted the add-docs-transient-ro branch July 31, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

control/skip-ci Do not run expensive CI on this job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants