Bootc switch issues
- Lenguaje dominante
- Rust
- Estrellas
- 2.3k
- Forks
- 230
- Merge medio
- 3 d 3 h
- PR fusionados (30 d)
- 36
Descripción
At the bottom is a wrapper script I use to do podman build and bootc switch. Bug 1 is known I think, we have to do chcon to solve an selinux issue. Bug 2 is if you try and bootc switch to a container with the same name as the current one, it does nothing (even though one may have made an edit to the container image since, etc.). I workaround this by getting the sha from `podman images -q`, but it should be able to recognise it's not the same image as currently booted.
```
#!/bin/bash
main() {
set -exu -o pipefail
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
return 1
fi
podman build -t bootc -f Containerfile-bootc
# Bug 1, selinux issue, need to chcon
bootc usr-overlay || true
chcon --reference /usr/bin/rpm-ostree /usr/bin/bootc
# Bug 2, if you try a bootc switch to a new image with the same name
# nothing happens, use the sha from "podman images -q" to workaround it
local id="$(podman images -q localhost/bootc)"
bootc switch --transport containers-storage "$id"
}
main "$@"
```
Guía de contribución
Línea de trabajo
Empieza con el script wrapper del issue y reproduce ambos casos usando `podman build`, `bootc usr-overlay` y `bootc switch --transport containers-storage`. Investiga el fallo de SELinux y el comportamiento del cambio de imágenes con el mismo nombre, usando el workaround basado en SHA como comparación. Se considera terminado cuando ambos casos reportados funcionan sin los workarounds manuales descritos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- bash
- Área
- operating-systems, security
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100