Add journaling for image finalization and firstboot
- Vorherrschende Sprache
- Rust
- Sterne
- 2.3k
- Forks
- 230
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 36
Beschreibung
It'd be useful for auditing purposes for us to emit journal messages on at least the first time a particular deployment is booted, including substantial metadata (basically at least all the image stuff: pull spec, digest, version, etc.).
We might as well also do this as part of `ostree-finalize-staged.service`. Today these services run C code from libostree which is unaware of the container bits, so to fix this we could either patch that code to be aware of the container refs (or call into `ostree container` commands if available, i.e. we put the logic in ostree-ext?). But this conflicts a bit with us doing the [podman pull](https://github.com/containers/bootc/pull/215) backend, so instead we could add units here (triggered by our new generator?) that "hook" `ostree-boot-complete.service` and `ostree-finalize-staged.service` via drop-ins say.
Beitragsleitfaden
Rechercherichtung
Beginne mit der Überprüfung von ostree-boot-complete.service und ostree-finalize-staged.service sowie des vorgeschlagenen neuen Generators und der Drop-ins. Lege fest, wie der Bootvorgang der ersten Bereitstellung und die Finalisierung des Images Journal-Nachrichten mit den im Issue aufgeführten Image-Metadaten ausgeben sollen. Als abgeschlossen gilt die Aufgabe, wenn beide Lebenszykluspunkte prüfbare Nachrichten erzeugen, ohne dass libostree über Container-Refs Bescheid wissen muss.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c
- Bereich
- devops, operating-systems
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100