bootc-dev / bootc-dev/bootc

bootc switch does not tell me when it ignores my /etc changes

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

説明

I've made changes to ```/etc``` in my Container file:

Tag ```quay.io/swalter/monday:test1```
```
RUN echo 'test1' > /etc/blah
```

Tag ```quay.io/swalter/monday:test2```

```
RUN echo 'test2' > /etc/blah
```

If I modify ```/etc/blah``` on a deployed system, and then run ```bootc switch``` the system ignores the changes represented in my ```Containerfile```, but doesn't tell me about this. This doesn't represent typical behavior I expect from a container. I expect the changes in ```/etc``` to take effect, or at a minimum for ```bootc``` to tell me when this isn't the case:

```
# cat /etc/blah
test2
# bootc status | grep image
image:
image: quay.io/swalter/monday:test2
image:
image:
image: quay.io/swalter/monday:test2
imageDigest: sha256:f1ec8375caf4ec43d5dd37f26dcfcca8eb7279dbee1a368f55b394e551096112
# echo "test different" >> /etc/blah
# bootc switch quay.io/swalter/monday:test1
No changes in quay.io/swalter/monday:test1 => sha256:09f60a3d90f9604c5802eca575e56df262b55f78f4cd20269c0aaae81c870ce7
Queued for next boot: ostree-unverified-registry:quay.io/swalter/monday:test1
Version: stream9.20240319.0
Digest: sha256:09f60a3d90f9604c5802eca575e56df262b55f78f4cd20269c0aaae81c870ce7
# reboot
...
# cat /etc/blah
test2
test different
```

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

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

調査の方向性

bootc switch を使って報告された Containerfile シナリオを再現し、/etc 配下のローカルな変更を含めて、結果として得られる bootc status とファイルシステムの内容を比較します。まず bootc switch のエントリポイントと、/etc の変更の処理を追跡します。完了条件は、テスト済みで明確に定義された動作です。つまり、イメージの変更を適用するか、ローカルな変更が保持されることを明示的に警告します。

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

評価

技術スタック
rust
領域
operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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