Files
omarchy/migrations/1765739892.sh
Ryan Hughes 9b78e3c571 Enable btrfs quota to allow space-aware algorithms to work
Co-authored-by: Raul Salinas <nacapulque@gmail.com>

Replaces #3858

Fixes #3850
Fixes #3055
2025-12-14 14:23:28 -05:00

8 lines
356 B
Bash

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