This will re-mount sysroot as ro
to avoid accidental changes. Its similar to
https://pagure.io/workstation-ostree-config/blob/main/f/postprocess.sh#_8
with only the documenation being fedora agnostic.
The change is as per discussion in:
https://github.com/ostreedev/ostree/issues/2734
Fedora changes: 5bbc140133
Resolves: rhbz#2153434
15 lines
359 B
Desktop File
15 lines
359 B
Desktop File
[Unit]
|
|
Description=Read-Only Sysroot Migration
|
|
Documentation=https://ostreedev.github.io/ostree
|
|
ConditionPathExists=!/var/lib/.ostree-readonly-sysroot
|
|
RequiresMountsFor=/sysroot /boot
|
|
ConditionPathIsReadWrite=/sysroot
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/libexec/ostree-readonly-sysroot-migration
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|