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

オープン
#428 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
49/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, rust
領域
devops, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
142
フォーク
40
平均マージ
4日 3時間
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bootc-dev/bcvk のほかの issue

bootc-dev/bcvk の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。