Run bootc install failed with `STORAGE_OPTS=additionalimagestore=/run/host-container-storage` on FCOS

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

Maintainer thường phản hồi trong vòng 2 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
linux, rust
Lĩnh vực
infrastructure

Hướng nghiên cứu

The report gives reproduction commands but names no source files or tests. Start by running the documented bcvk VM and bootc install steps with --bind-storage-ro, then compare the failing run with the workaround that mounts /run/host-container-storage into the container. Done means the failure is resolved without needing that extra bind mount; the issue provides no test entry point.

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

Mô tả

Use bcvk to start quay.io/fedora/fedora-coreos:testing-devel libvirt VM with --bind-storage-ro, then run bootc install failed.

  • Start VM with --bind-storage-ro
sudo bcvk libvirt run --name test --filesystem xfs --disk-size 20G --bind-storage-ro --firmware uefi-secure quay.io/fedora/fedora-coreos:testing-devel
sudo bcvk libvirt ssh test
  • Run bootc install with env STORAGE_OPTS=additionalimagestore=/run/host-container-storage
podman run --rm --privileged -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /:/target \
--pid=host --security-opt label=type:unconfined_t \
localhost/bootc-integration:latest \
env BOOTC_BOOTLOADER_DEBUG=1 RUST_LOG=trace STORAGE_OPTS=additionalimagestore=/run/host-container-storage bootc install to-existing-root --skip-fetch-check --acknowledge-destructive --root-ssh-authorized-keys /target/root/.ssh/bcvk-id_rsa.pub --karg=console=ttyS0,115200n8

....
DEBUG open_image: opening image self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest"
TRACE open_image:impl_request_with_fds: sending request OpenImage self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest" self=ImageProxy method="OpenImage"
error: Installing to filesystem: resolving bound image quay.io/curl/curl-base:latest: failed to invoke method OpenImage: overlay: can't stat imageStore dir /run/host-container-storage: stat /run/host-container-storage: no such file or directory

Additionally, from the error logs can not find /run/host-container-storage, the workaround is when running podman, add -v /run/host-container-storage:/run/host-container-storage.

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

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.