Commit Graph

3 Commits

Author SHA1 Message Date
Jonathan Lebon
5a15e121bd
ostree-readonly-sysroot-migration: update old naming scheme boot entries
Instead of renaming the boot entries to the new naming scheme
update existing ones by making `ostree admin kargs edit-in-place`
to use the old naming scheme.

Resolves: #RHEL-58437
2024-09-20 10:15:29 +02:00
Miguel Martín
22916589d6
Rename boot entries with old naming scheme
A new naming scheme for boot entries was introduced in
version 2014.5 [1]. We need to rename the old ones to this
new scheme before running `ostree admin kargs edit-in-place`.
Otherwise, the updated bootloader configuration will be written
to a new file instead of updating the existing one making the
system not bootable.

[1] https://github.com/ostreedev/ostree/pull/3206
Resolves: RHEL-45151
2024-09-09 08:00:32 +02:00
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