Support locking an existing staged deployment with --download-only
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- operating-systems
Línea de trabajo
Empieza reproduciendo bootc switch --download-only con una imagen ya preparada en los backends OSTree y composefs, y luego sigue el tratamiento del estado del deployment preparado. El trabajo estará terminado cuando una stage desbloqueada pase a estar bloqueada sin cambiar su imagen ni su digest, una stage que ya esté bloqueada permanezca sin cambios y los cambios no compatibles devuelvan un error claro.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 2.3k
- Forks
- 230
- Merge medio
- 2 d 21 h
- PR fusionados (30 d)
- 38
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bootc-dev/bootc
-
bootc-generic-growpart fails on an mdraid root: /sys/class/block/<md>/partition does not exist Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
area/composefs triaged
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Todos los issues de bootc-dev/bootc
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
yantrikos/yantrik-os#255 ·
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Abiertobug CLI custom-model
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
raphamorim/rio#1956 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 comentario ·