mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 12:47:49 +02:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
579cbf8f31 | ||
|
|
b50103d7ff | ||
|
|
31dd431c1a |
@@ -61,15 +61,15 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
# Enable quota to allow space-aware algorithms to work
|
||||
sudo btrfs quota enable /
|
||||
# Disable btrfs quotas (they cause performance issues)
|
||||
sudo btrfs quota disable / 2>/dev/null || true
|
||||
|
||||
# Tweak default Snapper configs
|
||||
# Tweak default Snapper configs (number-based pruning only, space-aware limits need quotas)
|
||||
sudo sed -i 's/^TIMELINE_CREATE="yes"/TIMELINE_CREATE="no"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^NUMBER_LIMIT="50"/NUMBER_LIMIT="5"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^NUMBER_LIMIT_IMPORTANT="10"/NUMBER_LIMIT_IMPORTANT="5"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^SPACE_LIMIT="0.5"/SPACE_LIMIT="0.3"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^FREE_LIMIT="0.2"/FREE_LIMIT="0.3"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^SPACE_LIMIT="0.5"/SPACE_LIMIT="0"/' /etc/snapper/configs/{root,home}
|
||||
sudo sed -i 's/^FREE_LIMIT="0.2"/FREE_LIMIT="0"/' /etc/snapper/configs/{root,home}
|
||||
|
||||
chrootable_systemctl_enable limine-snapper-sync.service
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
echo "Disable btrfs quotas and space-aware snapper limits on existing installs"
|
||||
|
||||
if omarchy-cmd-present btrfs; then
|
||||
if sudo btrfs quota status / 2>/dev/null | grep -q "Quota enabled: yes"; then
|
||||
sudo btrfs quota disable /
|
||||
fi
|
||||
fi
|
||||
|
||||
if omarchy-cmd-present snapper; then
|
||||
sudo sed -i 's/^SPACE_LIMIT="0\.3"/SPACE_LIMIT="0"/' /etc/snapper/configs/{root,home} 2>/dev/null
|
||||
sudo sed -i 's/^FREE_LIMIT="0\.3"/FREE_LIMIT="0"/' /etc/snapper/configs/{root,home} 2>/dev/null
|
||||
fi
|
||||
Reference in New Issue
Block a user