[ComposeFS Backend] Bootc container lint fails with previously-working build, even though the container builds fine
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- linux, rust
- 领域
- devops, infrastructure
调研方向
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
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bootc-dev/bootc 的其他 Issue
-
auto-updates fail with `opendir(boot): Operation not permitted` when /boot is a systemd automount that has idled out可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭triaged
难度 2/5 1-3 小时 新手友好度 70/100
bootc-dev/bootc#2402 · 9 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
install: improve error message when systemd-boot is selected without composefs backend可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 45/100
bootc-dev/bootc#2562 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
storytold/photocraft#5710 ·
维护者通常 1 天内回复
-
Two tests fail on a Windows checkout: a CRLF parse in feature_walk_tests, an 8.3 TEMP path in libraries_tests可能已有人在做 @CamWight 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
bherbruck/solvecraft#1186 · 1 条评论 ·
-
area: screenshot audit bug good first issue priority: P3 security severity: info type: correctness
难度 2/5 1-3 小时 新手友好度 70/100
pierruno-labs/prowl#31 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
limitlessprojects/Go-Hybrid#50 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复