Closed say-paul closed 3 months ago
Thanks, I was just recently seeing this.
Aug 21 12:58:07 localhost.localdomain systemd[1]: Starting Set grub2 boot counter in preparation of upgrade...
Aug 21 12:58:07 localhost.localdomain systemd[1]: Starting Hold /boot Open for OSTree Finalize Staged Deployment...
Aug 21 12:58:07 localhost.localdomain systemd[1]: Started Hold /boot Open for OSTree Finalize Staged Deployment.
Aug 21 12:58:07 localhost.localdomain greenboot-grub2-set-counter[1668]: grub2-editenv: error: cannot open `/boot/grub2/grubenv': Read-only file system.
This enables greenboot to work with bootc image alongside supporting ostree based image. Its achieved by:
Support is added for greenboot to work with read-only /boot. It uses PrivateMounts=yes to isolate the system and remounts boot as rw followed by setting the grub variable as per healthcheck.
The following services are affected:
The grub2-editenv command is decoupled from greenboot-grub2-set-success.service and is part of a separate script.
fixes: #136 .
Auto-detecting the the image type: ostree/bootc and applying the correct rollback verb to rollback to last known stable version.
fixes: #135