forked from QubesOS/qubes-core-admin-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Those files may easily accumulate in large quantities, to the point where just listing the /etc/lvm/archive directory takes a long time. This affects every lvm command call, so every VM start/stop. Those archive files are rarely useful, as Qubes do multiple LVM operations at each VM startup, so older data is really out of date very quickly. Automatically remove files in /etc/lvm/archive older than one day. Fixes QubesOS/qubes-issues#4927 Fixes QubesOS/qubes-issues#2963
- Loading branch information
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
find /etc/lvm/archive/ -type f -mtime +1 -name '*.vg' -delete |