From 017b8470a8f13d03d006c8370f57ae467cb7b5a6 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 1 Oct 2025 10:07:31 +0300 Subject: [PATCH] install: questionable migraine decisions --- install | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install b/install index 13fc9493..4792cdc3 100755 --- a/install +++ b/install @@ -167,7 +167,7 @@ if [ "$(id -u)" == "0" ]; then cp -v etc/systemd/system/app.slice.d/90-cpuquota.conf /etc/systemd/system/app.slice.d/90-cpuquota.conf mkdir -vp /etc/systemd/{coredump,login,oomd,journald,resolved,system,timesyncd}.conf.d/ cp -v etc/systemd/oomd.conf.d/20-oomd.conf /etc/systemd/oomd.conf.d/20-oomd.conf - mkdir -vp /etc/systemd/system/{aminda-duperemove,aminda-nocron-reboot,ssh,sshd,sshguard,systemd-resolved,systemd-networkd,NetworkManager,iwd,unbound,tor,oidentd,yggdrasil}.service.d/ + mkdir -vp /etc/systemd/system/{aminda-duperemove,aminda-nocron-reboot,ssh,sshd,sshguard,systemd-resolved,systemd-networkd,monthly-btrfs-balance,NetworkManager,iwd,unbound,tor,oidentd,yggdrasil}.service.d/ mkdir -vp /etc/systemd/system/{ssh,sshd,oidentd}.socket.d/ # SECURITY WARNING! cp -v etc/systemd/system/service.d/rngd-wanted.conf /etc/systemd/system/service.d/ @@ -189,6 +189,15 @@ if [ "$(id -u)" == "0" ]; then #cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/oidentd.socket.d/ rm -v /etc/systemd/system/*.socket.d/dualstack-bind.conf + # STRANGE BEHAVIOUR WARNING IF NOT ME. This is now how I assume Kinoite + if [ -f /usr/etc/rpm-ostreed.conf ]; then + cp -v etc/systemd/system/{aminda-duperemove,aminda-nocron-reboot,aminda-nocron-rebootish,flatpak-update,monthly-btrfs-balance,sysctl-p--system}.service /etc/systemd/system/ + cp -v etc/systemd/system/{aminda-duperemove,aminda-nocron-reboot,aminda-nocron-rebootish,flatpak-update,monthly-btrfs-balance,sysctl-p--system}.timer /etc/systemd/system/ + + cp -v etc/systemd/system/aminda-duperemove.service.d/{90-btrfs-balance,91-fedora-atomic}.conf /etc/systemd/system/aminda-duperemove.service.d/ + cp -v etc/systemd/system/monthly-btrfs-balance.service.d/fedora-atomic.conf /etc/systemd/system/monthly-btrfs-balance.service.d/ + fi + if hash systemctl 2> /dev/null; then systemctl daemon-reload (systemctl --global enable darkman.service &) @@ -209,6 +218,11 @@ if [ "$(id -u)" == "0" ]; then (systemctl disable --now sshd.service &) (systemctl enable --now sshd.socket &) fi + + if [ -f /usr/etc/rpm-ostreed.conf ]; then + (systemctl enable {aminda-duperemove,aminda-nocron-reboot,aminda-nocron-rebootish,flatpak-update,monthly-btrfs-balance,sysctl-p--system}.timer &) + fi + fi # SECURITY WARNING, autostarts