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

Aperta
#428 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
49/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, rust
Ambito
devops, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
142
Fork
40
Merge medio
4g 3h
PR unite (30g)
5

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bootc-dev/bcvk

Tutte le issue di bootc-dev/bcvk

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.