-
Notifications
You must be signed in to change notification settings - Fork 332
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 KeepFiles
config
#2115
Comments
I agree this would be useful but I'm not sure if we can implement this efficiently without introducing quite a bit of complexity. I don't see us adding this unless there's a more beefed up version of |
Would using a similar method to the Another option is |
|
Could taking advantage of snapshots avoid some of the complexity? e.g.
One issue is that this will be slower on hosts without snapshotting, however, that seems to already be the case with |
Host OS: Arch Linux
uname
: Linux 6.6.3-arch1-1 SMP PREEMPT_DYNAMIC x86_64 GNU/Linuxmkosi
: v19Description
Similar to the
KernelModules{Include,Exclude}
config options, where "Include" overrides "Exclude", it'd be super useful to have aKeepFiles
counterpart toRemoveFiles
.Right now, my
mkosi.prepare
&mkosi.finalize
scripts are mostly taken up by functions similar to the following:However, it would save a lot of scripting if I could instead do this in my config:
The text was updated successfully, but these errors were encountered: