mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Enable btrfs quota to allow space-aware algorithms to work
Co-authored-by: Raul Salinas <nacapulque@gmail.com> Replaces #3858 Fixes #3850 Fixes #3055
This commit is contained in:
7
migrations/1765739892.sh
Normal file
7
migrations/1765739892.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
if omarchy-cmd-present btrfs && omarchy-cmd-present snapper; then
|
||||
echo "Adjust snapper space limits & enable btrfs quota"
|
||||
|
||||
sudo sed -i 's/^SPACE_LIMIT="0.5"/SPACE_LIMIT="0.3"/' /etc/snapper/configs/{root,home} 2>/dev/null
|
||||
sudo sed -i 's/^FREE_LIMIT="0.2"/FREE_LIMIT="0.3"/' /etc/snapper/configs/{root,home} 2>/dev/null
|
||||
sudo btrfs quota enable /
|
||||
fi
|
||||
Reference in New Issue
Block a user