Fedora-OSTree-Setup-dev / Fedora-OSTree-Setup

Glorified scipt that automates the setup of Fedora Silverblue/Kinoite based on given config file.
GNU General Public License v3.0
7 stars 3 forks source link

enable read-only sysroot #98

Open boredsquirrel opened 1 year ago

boredsquirrel commented 1 year ago

This is a feature implemented in F37 but its opt-in, which is imo pretty useless as probably everyone benefitting from it would not manually enable that.

sudo rpm-ostree kargs --append-if-missing=rw

sudo ostree config --repo=/sysroot/ostree/repo set "sysroot.readonly" "true"

sudo systemctl reboot

This may cause breakages, but probably not. If there are any kernel changes or layered packages this may cause troubles or has to be applied afterwards.