From ad575b50a871ce7da2f28dc00e05aee8d25de86a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 1 Oct 2025 10:17:41 +0300 Subject: [PATCH] install: not everything depends on kinoite or btrfs --- install | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/install b/install index 4792cdc3..441e3232 100755 --- a/install +++ b/install @@ -189,11 +189,19 @@ 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/ + # SECURITY WARNING! Automatic flatpak updates + if hash flatpak 2> /dev/null; then + cp -v etc/systemd/system/flatpak-update.{timer,service} /etc/systemd/system/ + fi + # STRANGE BEHAVIOUR WARNING IF NOT ME. + cp -v etc/systemd/system/{aminda-nocron-reboot,aminda-nocron-rebootish,sysctl-p--system}.service /etc/systemd/system/ + cp -v etc/systemd/system/{aminda-nocron-reboot,aminda-nocron-rebootish,sysctl-p--system}.timer /etc/systemd/system/ + # This is now how I assume Kinoite + if [ -f /usr/etc/rpm-ostreed.conf ]; then + cp -v etc/systemd/system/{aminda-duperemove,monthly-btrfs-balance}.service /etc/systemd/system/ + cp -v etc/systemd/system/{aminda-duperemove,monthly-btrfs-balance}.timer /etc/systemd/system/ + # As we are Kinoite/Atomic and known to use BTRFS 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 @@ -219,6 +227,13 @@ if [ "$(id -u)" == "0" ]; then (systemctl enable --now sshd.socket &) fi + # Aminda weirdness + (systemctl enable --now {aminda-nocron-reboot,aminda-nocron-rebootish,sysctl-p--system}.timer &) + + if hash flatpak 2> /dev/null; then + (systemctl enable flatpak-update.timer &) + 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