Add `bootc discard-staged` to safely cancel a pending deployment
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start by reading the deployment and rollback paths for both OSTree and composefs, then trace how ordinary and --download-only stages affect the next-boot selection and tracked image reference. Add bootc discard-staged with safe handling for concurrent staging and no-stage cases. Done means tests cover both backends and next-boot behavior, bootc status reports no staged deployment, and an unrelated reboot cannot apply the discarded image.
由索引模型根据 Issue 内容生成。
描述
Description
Bootc currently lacks a dedicated way to discard a staged deployment while keeping the currently booted image as the next-boot default. bootc rollback discards staging but queues the rollback image instead. This matters when a staged image fails a newly applied signature policy: skipping an agent-initiated reboot is insufficient because an unrelated reboot may still apply it. See CVE-2026-16460. This mechanism will also benefit the bootc-operator, since a signature policy could change between the time the deployment was staged and the reboot, this will enable the bootc-operator to discard the deployment.
Expected behavior
- Works with OSTree and composefs backends, including ordinary and
--download-onlystages. - Leaves booted image selected for next boot; preserves rollback deployment.
- Is safe and idempotent when no stage exists.
- Handles concurrent staging safely and documents how the tracked image reference changes.
- After success,
bootc statusshows no staged deployment; an unrelated reboot cannot apply the discarded image. - Includes tests for both backends and next-boot behavior.
- 主要语言
- Rust
- 星标
- 2.3k
- 派生
- 230
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 42
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bootc-dev/bootc 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
install: improve error message when systemd-boot is selected without composefs backend可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 57/100
维护者通常 2 天内回复
相似的 Issue
-
[Bug]: layer.move to the place a layer already has fails and stops a script; with several layers it leaves an empty undo step可能已有人在做 @jgregoriorincon 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
opengeos/RustGIS#2621 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue web
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit test可能已有人在做 @louistrue 今天认领。 未关闭ready
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复