install: lazy in btrfs-enable-dynamic-periodic-reclaim if available

This commit is contained in:
Aminda Suomalainen 2026-04-01 13:46:51 +03:00
parent c20413a0ae
commit e35b603001
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -230,6 +230,11 @@ if [ "$(id -u)" == "0" ]; then
chmod -v a+r /etc/sysctl.d/*.conf
(sysctl -p --system &)
# my script to avoid scheduling btrfs balancing
if hash bat 2> /dev/null; then
btrfs-enable-dynamic-periodic-reclaim
fi
# We are doing kernel module configuration now? SECURITY WARNING!!!!1
if [ -d /etc/modules-load.d/ ]; then
if [[ ! -f /dev/ntsync && -f /lib/modules/$(uname -r)/kernel/drivers/misc/ntsync.ko.xz ]]; then