bootc-dev / bootc-dev/bootc

Add or doc support for making `/var` transient

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

説明

We should really support this; I think one could probably hack it up with a post-switchroot systemd unit that just mounts a tmpfs for `/var`, but I suspect at least some people *will* want to spool to the real filesystem for large data and not be limited by RAM (ok modulo enabling file-backed swap on the real root, which we should also definitely add support for...yeah see below).

Anyways, it'd be easy to add `var.transient` to go alongside our existing `etc.transient` and `root.transient`.

## Tangent: automatic swap file support

Swap partitions are well known and supported. However, there's also swap files because basically dealing with partitions stinks - especially resizing.

It might be nice if we supported something like... `/sysroot/autoswap` or `/sysroot/bootc/swap` that we detect in the initramfs and if present we enable by default. Although we'd also need to expose a nice declarative way to initialize that at install time as embedded in a container, probably in the install config? Hmm though there's no reason not to support changing it "day 2". In the general case of course one can just do this manually in the initramfs, but customizing the initramfs in this way has a higher bar and is more likely to break. I could imagine this being a default part of dracut...something like a rd.swap= kernel arg.

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

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

調査の方向性

まず既存の `etc.transient` と `root.transient` の処理をたどり、次に post-switchroot systemd unit と initramfs がどのように構成されているかを確認します。この Issue では、一時的な `/var` のサポートと、スワップファイルの自動検出およびインストールが混在しているため、実装前に意図するスコープを明確にする必要があります;完了条件には、合意された動作と、それに対応するドキュメントまたはテストを含める必要があります。

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

評価

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

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

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