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

Ouverte
#428 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
49/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
linux, rust
Domaine
devops, testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Rust
Étoiles
142
Forks
40
Merge moyen
4 j 3 h
PR mergées (30 j)
5

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

  • Aucun Dockerfile ni fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de bootc-dev/bcvk

Toutes les issues de bootc-dev/bcvk

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.