Add `bootc discard-staged` to safely cancel a pending deployment
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả 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 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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 2.3k
- Fork
- 230
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 42
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bootc-dev/bootc
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
install: improve error message when systemd-boot is selected without composefs backendCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của bootc-dev/bootc
Issue tương tự
-
[Bug]: layer.move to the place a layer already has fails and stops a script; with several layers it leaves an empty undo stepCó thể đã có người làm @jgregoriorincon đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
opengeos/RustGIS#2621 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue web
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Wait for the IDS correction dialog to settle in the stale-audit testCó thể đã có người làm @louistrue đã nhận hôm nay. Đang mởready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày