{aminda-duperemove.service,monthly-btrfs-balance.service}.d: correct fedora-atomic.conf based on fstab reading

This commit is contained in:
Aminda Suomalainen 2025-04-30 11:57:27 +03:00
parent 3b9ff30bf0
commit 9a2c019db9
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
4 changed files with 18 additions and 14 deletions

View File

@ -1,9 +0,0 @@
[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

View File

@ -0,0 +1,9 @@
[Service]
ExecStart=
# /home is actually in /var/home so the latter command should catch it
#ExecStart=-duperemove -rdhq --hashfile=/root/home.hash /home
ExecStart=-duperemove -rdhq --hashfile=/root/var.hash /var
ExecStartPre=
# Same filesystem although different subvolume, so this should work?
ExecStartPre=-btrfs balance start -dusage=25 -dlimit=10 -musage=25 -mlimit=10 /var
ExecStartPost=-btrfs balance start -dusage=50 /var

View File

@ -1,5 +0,0 @@
[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

View File

@ -0,0 +1,9 @@
[Service]
# The overlayfs is not BTRFS and errors out, so the actual partition needs
# to be specified.
ExecStartPre=
ExecStartPre=-btrfs balance cancel /var
#ExecStartPre=-btrfs balance cancel /var/home
ExecStart=
ExecStart=btrfs balance start --full-balance /var
#ExecStart=btrfs balance start --full-balance /var/home