systemd/{duperemove,btrfs-balance}: add drop-ins for Fedora Atomic/Kinoite

This commit is contained in:
Aminda Suomalainen 2025-04-29 16:50:48 +03:00
parent 4c7d5b5151
commit 0a8c9042f6
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
3 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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