ostree/ostree-readonly-sysroot-migration.service
Sayan Paul b63fd9483b fix: mount sysroot as ro
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
2022-12-14 20:42:48 +05:30

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