bootc-dev / bootc-dev/bootc

install: Support reinstallation (factory reset)

オープン
#404 コメント 22 件 リアクション 15 件 担当者 0 名 GitHub で見る
area/etc-var area/install enhancement
主要言語
Rust
スター
2.3k
フォーク
230
平均マージ
3日 3時間
マージ済み PR(30日)
36

説明

https://github.com/containers/bootc/pull/137 is tracking part of this, a lot of related discussion in https://github.com/coreos/fedora-coreos-tracker/issues/399

Basically we should support something like `bootc install factory-reset` that would configurably wipe local system state.

On the implementation side...I think the best way to do this would be something like:

- Create new deployment with fresh `etc` targeting a new stateroot
- Boot into it
- optional: clean up old deployment + stateroot

The beauty of this approach is that the "factory reset" would actually also be fully transactional, i.e. you could roll back into the previous state. It'd be easy to copy over any desired state (SSH host keys, cached container images e.g.) from the previous boot before deleting it.

## Active work

- https://github.com/bootc-dev/bootc/pull/1389

## Goals:

- Make stateroots more visible, e.g. at least status should show them if different
- Need to support explicit pruning of deployments e.g. `bootc deployment rm` (like `ostree admin undeploy`) so that I can get rid of old stateroots

## Ideas:

- Add `bootc mount /run/tmp-next-root` so that I can `cp -a --reflink=always /var/home /run/tmp-next/root/var/home`

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず PR 1389 の進行中の作業と、関連する Fedora CoreOS tracker の議論を確認します。factory-reset フローを定義する前に、既存の `bootc install`、`bootc status`、デプロイメントのエントリポイントを追跡します。完了条件には、表示可能な stateroots、トランザクション形式のリセット、および目標に記載されている明示的なデプロイメントの削除を含めます。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
cli, operating-systems
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。