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

Đang mở
#428 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
49/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, rust
Lĩnh vực
devops, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
142
Fork
40
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bootc-dev/bcvk

Tất cả issue của bootc-dev/bcvk

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.