`bootc install to-filesystem` does not check for mutable /usr before performing destructive operations
- Lenguaje dominante
- Rust
- Estrellas
- 2.3k
- Forks
- 230
- Merge medio
- 3 d 3 h
- PR fusionados (30 d)
- 36
Descripción
This isn't really a bug, just a behavior that probably needs to be documented or prevented outright.
### To reproduce
1. Have a Fedora Atomic system (with read-only usr)
2. Run this command (from the documentation [here](https://containers.github.io/bootc/bootc-install.html#using-bootc-install-to-existing-root)):
```
sudo podman run --rm --privileged -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /:/target \
--pid=host --security-opt label=type:unconfined_t \
\
bootc install to-existing-root
```
Observe how your /boot drive will be wiped and then the installation will fail to run `fchmod`, my guess being due to the read-only /usr, aborting the installation.
Guía de contribución
Línea de trabajo
Comienza con la documentación de instalación de bootc enlazada y reproduce el comando mostrado en un sistema Fedora Atomic con un /usr de solo lectura. Determina si el trabajo terminado debe impedir las operaciones destructivas antes del fallo o documentar claramente el requisito previo; se considera terminado cuando la instalación ya no borra /boot antes de un fallo inevitable, o cuando el comportamiento documentado es explícito.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- cli, operating-systems
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 32/100