Add `bootc discard-staged` to safely cancel a pending deployment
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- operating-systems
Direzione di ricerca
Start by reading the deployment and rollback paths for both OSTree and composefs, then trace how ordinary and --download-only stages affect the next-boot selection and tracked image reference. Add bootc discard-staged with safe handling for concurrent staging and no-stage cases. Done means tests cover both backends and next-boot behavior, bootc status reports no staged deployment, and an unrelated reboot cannot apply the discarded image.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Bootc currently lacks a dedicated way to discard a staged deployment while keeping the currently booted image as the next-boot default. bootc rollback discards staging but queues the rollback image instead. This matters when a staged image fails a newly applied signature policy: skipping an agent-initiated reboot is insufficient because an unrelated reboot may still apply it. See CVE-2026-16460. This mechanism will also benefit the bootc-operator, since a signature policy could change between the time the deployment was staged and the reboot, this will enable the bootc-operator to discard the deployment.
Expected behavior
- Works with OSTree and composefs backends, including ordinary and
--download-onlystages. - Leaves booted image selected for next boot; preserves rollback deployment.
- Is safe and idempotent when no stage exists.
- Handles concurrent staging safely and documents how the tracked image reference changes.
- After success,
bootc statusshows no staged deployment; an unrelated reboot cannot apply the discarded image. - Includes tests for both backends and next-boot behavior.
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 2g 11h
- PR unite (30g)
- 42
Preparare l'ambiente
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.
Altre issue di bootc-dev/bootc
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni
-
install: improve error message when systemd-boot is selected without composefs backendForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di bootc-dev/bootc
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testForse già presa @louistrue l’ha presa oggi. Apertaready
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
dutchman-cad/dutchman#874 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MartinPTielemans/ilo#3840 ·
I maintainer di solito rispondono entro 1 giorno
-
bug file-compat priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
storytold/wordcraft#7248 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni