libvirt run: Provide spare disk space for tests that add partitions

Abierto
#428 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
49/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, rust
Área
devops, testing

Línea de trabajo

Read the libvirt run implementation and its tests to find how disks are attached and how the cached base disk is created. The issue proposes adding an option such as --extra-disk 2G for blank disks; check existing CLI conventions and test coverage. Done means libvirt run can attach one or more blank disks so integration tests can use a separate /var or /boot without shrinking the ESP.

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

Descripción

bootc's integration tests that need an extra partition (a separate /var, XBOOTLDR, a separate /boot) currently shrink the ESP inside the VM to make room, because bcvk libvirt run gives root the whole disk. See https://github.com/bootc-dev/bootc/pull/2658#discussion_r4622634043.

Today there's no way to get spare space:

  • The cached base disk is created at --root-size (or the 20G default), so the disk is exactly the install.
  • --disk-size doesn't resize a disk cloned from the cache (#416).
  • Even with free space, CentOS Stream's bootc-generic-growpart grows root into it on first boot.

Either of these would let the tests drop the ESP shrinking:

  1. An option to attach one or more blank disks, e.g. --extra-disk 2G (enough for a separate /var or /boot).
  2. --disk-size honoured for cached disks (#416), plus a documented way to keep growpart from claiming the space (XBOOTLDR wants to be on the ESP's disk).

I'm planning to work on 1 first, then #416.

Lenguaje dominante
Rust
Estrellas
142
Forks
40
Merge medio
4 d 3 h
PR fusionados (30 d)
5

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bootc-dev/bcvk

Todos los issues de bootc-dev/bcvk

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.