Support locking an existing staged deployment with --download-only
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- operating-systems
Direzione di ricerca
Inizia riproducendo bootc switch --download-only con un'immagine già predisposta sui backend OSTree e composefs, quindi traccia la gestione dello stato del deployment predisposto. Il lavoro è completato quando uno stage sbloccato diventa bloccato senza modificare la sua immagine o il suo digest, uno stage già bloccato rimane invariato e le modifiche non supportate restituiscono un errore chiaro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Running bootc switch --download-only for the same image that is already
staged does not convert the staged deployment from unlocked to download-only.
Instead, bootc exits successfully without changing the staged deployment:
Image specification is unchanged.
The staged deployment continues to report:
{
"downloadOnly": false
}
This means management software cannot safely enable a policy requiring an
explicit apply operation after the image has already been staged.
The result was reproduced on both:
- OSTree backend using XFS
- composefs backend using ext4, GRUB and BLS
Both returned Image specification is unchanged. with exit status 0, and both
left status.staged.downloadOnly set to false.
The OSTree-specific ostree admin lock-finalization command may provide a
low-level workaround, but it is not a backend-independent bootc interface.
Background Why this matters https://github.com/bootc-dev/bootc-operator/pull/151
While implementing RequireSoftReboot support in bootc-operator, we need to
guarantee that a staged deployment cannot be applied by an ordinary reboot
before the operator explicitly applies it.
For RequireSoftReboot, the operator must ensure that an ordinary reboot
cannot accidentally apply the staged image.
If RequireSoftReboot is enabled after an update was staged normally,
bootc-operator currently cannot safely lock that existing stage. It must reject
the policy transition and report SoftRebootStageUnlocked.
Expected Behavior:
If changing the state is unsupported, the command should return a clear error
instead of successfully reporting that the image specification is unchanged.
The operation should ideally be idempotent:
- An unlocked staged deployment becomes locked.
- An already locked deployment remains locked.
- The selected image and digest do not change.
A backend-independent bootc operation would let the operator safely adopt the
existing stage instead.
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 2g 21h
- PR unite (30g)
- 45
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
-
install: root SSH tmpfiles.d drop-in is labeled etc_runtime_t instead of etc_tForse già presa @andrewdunndev l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
auto-updates fail with `opendir(boot): Operation not permitted` when /boot is a systemd automount that has idled outForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
bootc-dev/bootc#2402 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
install: improve error message when systemd-boot is selected without composefs backendForse già presa @ASVLCII l’ha presa 24 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bootc-dev/bootc
Issue simili
-
[Misdetection] `text/tab-separated-values` file misdetected as `text/tsv`Forse già presa @bact l’ha presa oggi. Apertamisdetection needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
C-bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
vxc prints a debug line '[flat-codegen] emitted module via the flat path' on every compileForse già presa @YodHeVauHe l’ha presa oggi. Apertadevex good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 3 giorni
-
Unused dependenciesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno