install: not everything depends on kinoite or btrfs

This commit is contained in:
Aminda Suomalainen 2025-10-01 10:17:41 +03:00
parent b8a6b53f5e
commit ad575b50a8
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

23
install
View File

@ -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/ #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 rm -v /etc/systemd/system/*.socket.d/dualstack-bind.conf
# STRANGE BEHAVIOUR WARNING IF NOT ME. This is now how I assume Kinoite # SECURITY WARNING! Automatic flatpak updates
if [ -f /usr/etc/rpm-ostreed.conf ]; then if hash flatpak 2> /dev/null; 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/flatpak-update.{timer,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/ 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/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/ cp -v etc/systemd/system/monthly-btrfs-balance.service.d/fedora-atomic.conf /etc/systemd/system/monthly-btrfs-balance.service.d/
fi fi
@ -219,6 +227,13 @@ if [ "$(id -u)" == "0" ]; then
(systemctl enable --now sshd.socket &) (systemctl enable --now sshd.socket &)
fi 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 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 &) (systemctl enable {aminda-duperemove,aminda-nocron-reboot,aminda-nocron-rebootish,flatpak-update,monthly-btrfs-balance,sysctl-p--system}.timer &)
fi fi