bootc-dev / bootc-dev/bootc

bootc switch does not tell me when it ignores my /etc changes

Abierto
#438 4 comentarios 0 reacciones 0 asignados Ver en GitHub
area/config
Lenguaje dominante
Rust
Estrellas
2.3k
Forks
230
Merge medio
3 d 3 h
PR fusionados (30 d)
36

Descripción

I've made changes to ```/etc``` in my Container file:

Tag ```quay.io/swalter/monday:test1```
```
RUN echo 'test1' > /etc/blah
```

Tag ```quay.io/swalter/monday:test2```

```
RUN echo 'test2' > /etc/blah
```

If I modify ```/etc/blah``` on a deployed system, and then run ```bootc switch``` the system ignores the changes represented in my ```Containerfile```, but doesn't tell me about this. This doesn't represent typical behavior I expect from a container. I expect the changes in ```/etc``` to take effect, or at a minimum for ```bootc``` to tell me when this isn't the case:

```
# cat /etc/blah
test2
# bootc status | grep image
image:
image: quay.io/swalter/monday:test2
image:
image:
image: quay.io/swalter/monday:test2
imageDigest: sha256:f1ec8375caf4ec43d5dd37f26dcfcca8eb7279dbee1a368f55b394e551096112
# echo "test different" >> /etc/blah
# bootc switch quay.io/swalter/monday:test1
No changes in quay.io/swalter/monday:test1 => sha256:09f60a3d90f9604c5802eca575e56df262b55f78f4cd20269c0aaae81c870ce7
Queued for next boot: ostree-unverified-registry:quay.io/swalter/monday:test1
Version: stream9.20240319.0
Digest: sha256:09f60a3d90f9604c5802eca575e56df262b55f78f4cd20269c0aaae81c870ce7
# reboot
...
# cat /etc/blah
test2
test different
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el escenario de Containerfile informado con bootc switch, incluida una modificación local en /etc, y compara el bootc status resultante y el contenido del sistema de archivos. Comienza siguiendo el punto de entrada de bootc switch y cómo gestiona las modificaciones en /etc. El trabajo estará terminado cuando exista un comportamiento probado y claramente definido: aplicar el cambio de la imagen o advertir explícitamente que se conserva la modificación local.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.