install: questionable migraine decisions

This commit is contained in:
Aminda Suomalainen 2025-10-01 10:07:31 +03:00
parent 6251766e1a
commit 017b8470a8
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

16
install
View File

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