ostree/src/switchroot
Jonathan Lebon a7a751b69f ostree-remount: Remount /etc rw if needed
When we remount `/sysroot` as read-only, we also make `/etc` read-only.
This is usually OK because we then remount `/var` read-write, which also
flips `/etc` back to read-write... unless `/var` is a separate
filesystem and not a bind-mount to the stateroot `/var`.

Fix this by just remounting `/etc` read-write in the read-only sysroot
case.

Eventually, I think we should rework this to set everything up the way
we want from the initramfs (#2115). This would also eliminate the window
during which `/etc` is read-only while `ostree-remount` runs.
2020-08-28 14:16:46 -04:00
..
ostree-mount-util.h Move ro /sysroot bind mount of /etc into initramfs 2020-05-24 18:46:28 +00:00
ostree-prepare-root.c ostree-prepare-root: Fix /etc bind mount 2020-08-28 14:16:29 -04:00
ostree-remount.c ostree-remount: Remount /etc rw if needed 2020-08-28 14:16:46 -04:00
ostree-system-generator.c switchroot: Move late /run/ostree-booted creation to ostree-system-generator 2018-07-09 00:11:31 +00:00
switchroot.sh switchroot: Document a bit more, add demo shell implementation 2017-04-19 18:52:05 +00:00