check composefs compat when rebasing
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 3g 3h
- PR unite (30g)
- 36
Descrizione
Our default stance for bootc is to enable composefs, which requires sysroot.readonly=true, which in turn imposes other requirements/tweaks like ensuring the rootfs is mounted read-write in the initramfs with rw, etc.
It's a trap today if one is bootc switching from a system without this setup to a bootc base image that is, because we'll barf in the initramfs.
Short term, I think we can check at least before the update (and reboot) for this situation. Hmm, something we clearly should have more of but don't is static checks between the phases:
- download new rootfs
- <static checks>
- queue bootloader entry
rpm-ostree at least does a bwrap invocation of true in the new root, which has verified some things in the past.
And the composefs one is pretty easy to check; look in the new root for /usr/lib/ostree/prepare-root.conf and check if it's enabled in the new one, but the current root doesn't have sysroot.readonly.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal flusso di bootc switch e segui le fasi dal download del nuovo rootfs fino all’accodamento della voce del bootloader. Esamina come la nuova root viene resa disponibile per i controlli e confronta il suo /usr/lib/ostree/prepare-root.conf con l’impostazione sysroot.readonly della root corrente. Il lavoro è completo quando i rebase composefs incompatibili vengono rilevati prima che l’aggiornamento o il riavvio procedano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100