diff --git a/etc/systemd/system/aminda-duperemove.service.d/99-btrfs-balance.conf b/etc/systemd/system/aminda-duperemove.service.d/90-btrfs-balance.conf similarity index 100% rename from etc/systemd/system/aminda-duperemove.service.d/99-btrfs-balance.conf rename to etc/systemd/system/aminda-duperemove.service.d/90-btrfs-balance.conf diff --git a/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic-home.conf b/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic-home.conf new file mode 100644 index 00000000..8b0b5be6 --- /dev/null +++ b/etc/systemd/system/aminda-duperemove.service.d/91-fedora-atomic-home.conf @@ -0,0 +1,9 @@ +[Service] +# This unit will make it duperemove Fedora Kinoite's home +ExecStart= +ExecStart=-duperemove -rdhq --hashfile=/root/var-home.hash /var/home +[Service] +# https://superuser.com/a/1290109 +# Contained in `systemd-path search-binaries-default` +ExecStartPre=-btrfs balance start -dusage=25 -dlimit=10 -musage=25 -mlimit=10 /var/home +ExecStartPost=-btrfs balance start -dusage=50 /var/home diff --git a/etc/systemd/system/monthly-btrfs-balance.service.d/fedora-atomic-home.conf b/etc/systemd/system/monthly-btrfs-balance.service.d/fedora-atomic-home.conf new file mode 100644 index 00000000..cbdd113f --- /dev/null +++ b/etc/systemd/system/monthly-btrfs-balance.service.d/fedora-atomic-home.conf @@ -0,0 +1,5 @@ +[Service] +# The overlayfs is not BTRFS and errors out, so the actual partition needs +# to be specified. +ExecStartPre=-btrfs balance cancel /var/home +ExecStart=btrfs balance start --full-balance /var/home