Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#2,564 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux, rust

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Rust
星标
2.3k
派生
230
平均合并
2 天 20 小时
30 天内合并 PR
52

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bootc-dev/bootc 的其他 Issue

查看 bootc-dev/bootc 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。