Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

install: --stateroot is silently ignored with --composefs-backend

Đã đóng
#2,542 0 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 1 ngày

Một pull request liên quan đã được merge.

  • #2544 của @andrewdunndev — đã merge

Đá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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
operating-systems

Hướng nghiên cứu

Start by reading InstallComposefsOpts::validate in crates/lib/src/install.rs and the fixed layout in crates/lib/src/composefs_consts.rs, then trace how bootc_composefs handles installation options. Decide whether composefs should support stateroots or reject --stateroot; done means the option is no longer silently ignored, with behavior covered by an install test.

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

Mô tả

bootc install to-disk --composefs-backend --stateroot myroot exits 0, but the stateroot name isn't used. The installed disk has state/os/default, and no path on the root partition is named myroot. Without --composefs-backend the deployment lands in ostree/deploy/myroot. The install output doesn't mention the stateroot on either backend.

Reproduced on quay.io/fedora/fedora-bootc:44@sha256:5ab8ee5189bb0f3870279723f5343474df002d8d6f46564702b3ad3ba7382d98 (bootc 1.16.13). In the commands, $IMG is an image built FROM that one, adding only config files for other options.

truncate -s 20G c.raw d.raw
podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t \
  -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v $PWD:/out $IMG \
  bootc install to-disk --via-loopback --filesystem ext4 --generic-image --wipe \
  --composefs-backend --stateroot myroot /out/c.raw
# the same again without --composefs-backend, writing d.raw

With each root partition mounted:

# composefs disk
$ ls state/os
default
$ ls ostree/deploy
ls: cannot access 'ostree/deploy': No such file or directory

# ostree disk
$ ls ostree/deploy
myroot

InstallComposefsOpts::validate checks only the bootloader (install.rs L423-L439), the composefs layout uses a fixed state/os/default/var (composefs_consts.rs L11), and nothing under bootc_composefs reads the stateroot.

I'd expect --stateroot to be rejected with --composefs-backend, the way --bootloader=none is, unless composefs is meant to support stateroots.

Related: #2535

Ngôn ngữ chính
Rust
Star
2.3k
Fork
230
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
55

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

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/bootc

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

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.