Enable read only /sysroot
for Fedora Silverblue & Kinoite
Summary
Owner
- Name: Timothée Ravier, Tomáš Popela
- Email: siosm@fedoraproject.org, tpopela@fedoraproject.org
- FESCo shepherd: Neal Gompa ngompa@fedoraproject.org
Current status
- Targeted release: Fedora Linux 37
- Last updated: 2022-01-24
- FESCo issue: <will be assigned by the Wrangler>
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
https://github.com/fedora-silverblue/issue-tracker/issues/232
Feedback
Benefit to Fedora
This will make Fedora Silverblue/Kinoite more robust to accidental damage from users.
Scope
- Proposal owners:
- Other developers:
- Release engineering: #Releng issue number
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with Objectives: N/A
Upgrade/compatibility impact
How To Test
Only try the following if you are confortable debugging an un-bootable system and have made backups!
$ sudo rpm-ostree kargs --append-if-missing=rw $ sudo ostree config --repo=/sysroot/ostree/repo set "sysroot.readonly" "true" $ sudo systemctl reboot
Note that you can not "rollback" to the previous deployment to undo this change. You will have to boot into a Live ISO and edit the config file in the ostree repo to remove this config option.
User Experience
There should be no visible change in user experience.
Dependencies
Requires changes in Anaconda (config?) to set default kargs and property on ostree repo.
Contingency Plan
Revert the change before the release.
Documentation
N/A (not a System Wide Change)
Release Notes
TODO