Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add or doc support for making /var transient #784

Open
cgwalters opened this issue Sep 11, 2024 · 0 comments
Open

Add or doc support for making /var transient #784

cgwalters opened this issue Sep 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cgwalters
Copy link
Collaborator

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.

@cgwalters cgwalters added the enhancement New feature or request label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant