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

[ComposeFS Backend] Bootc container lint fails with previously-working build, even though the container builds fine

Đang mở
#2,564 2 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

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
Sôi nổi
Công nghệ
linux, rust
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

The failure comes from the runtime-deps container lint check, which resolves usr/local/sbin/chcon and reports that the path leads outside the filesystem. Start by finding the lint check and its path-resolution code in the bootc crate, then reproduce with a container whose /usr/local is a symlink to /var/usrlocal. Done when the lint passes on such an image without treating the missing chcon as a failure.

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

Mô tả

Tested on: bootc 1.17.1 (latest as of right now) and bootc 1.16.10 (last before SELinux was made a required dependency)

Building with bootc 1.16.10 and running container lint on the result will result in the following

> sudo podman run --rm -it --entrypoint=bootc 9acb7d50041f container lint                                                                                                                                                                                                                                   
Checks passed: 13
Checks skipped: 1

But on 1.17.1:

> sudo podman run --rm -it --entrypoint=bootc localhost/amethyris:latest container lint                                                                                                                                                                                                                    
error: Linting: Unexpected runtime error running lint runtime-deps: checking whether usr/local/sbin/chcon exists: a path led outside of the filesystem

Both images have podman version 6.1.3

Due to the fact that the referenced binary is chcon I suspect this issue relates to SELinux, however I do not know for certain. My images do not have chcon on them. I suspect the issue is that the binary is not found in /usr/bin, lint then checks /usr/local/bin, but /usr/local is a symlink to /var/usrlocal which is not populated at this time.

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

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.