-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy path17-cleanup.sh
More file actions
executable file
·94 lines (74 loc) · 2.77 KB
/
Copy path17-cleanup.sh
File metadata and controls
executable file
·94 lines (74 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/bash
echo "::group:: ===$(basename "$0")==="
set -eoux pipefail
# Setup Systemd
systemctl enable rpm-ostree-countme.service
systemctl enable tailscaled.service
systemctl enable dconf-update.service
systemctl enable brew-setup.service
systemctl enable aurora-groups.service
systemctl enable ublue-system-setup.service
systemctl --global enable ublue-user-setup.service
systemctl --global enable podman-auto-update.timer
systemctl enable input-remapper.service
# Nuke possible Fedora flatpak repos
systemctl enable flatpak-nuke-fedora.service
# TODO: Reinvestigate when bazaar gains dbus activation
# systemctl --global enable bazaar.service
# see /usr/bin/rechunker-group-fix
# DO NOT REMOVE THIS
systemctl enable rechunker-group-fix.service
# run flatpak preinstall once at startup
systemctl enable flatpak-preinstall.service
# disable sunshine service
systemctl --global disable app-dev.lizardbyte.app.Sunshine.service
# Make speech dispatcher work by default
# TODO: Revisit with F45
# https://src.fedoraproject.org/rpms/redhat-systemd-presets/pull-request/4
# https://bugzilla.redhat.com/show_bug.cgi?id=2284507
systemctl --global enable speech-dispatcher.socket
# Updater
systemctl enable uupd.timer
# Disable the old update timer
systemctl disable rpm-ostreed-automatic.timer
# TODO: Remove with F45 release
if [[ "${AKMODS_FLAVOR}" =~ coreos ]]; then
systemctl enable aurora-zfs-deprecation-notifier.timer
fi
# Hide Desktop Files. Hidden removes mime associations
for file in htop nvtop; do
if [[ -f "/usr/share/applications/${file}.desktop" ]]; then
desktop-file-edit --set-key=Hidden --set-value=true /usr/share/applications/${file}.desktop
fi
done
# NOTE: With isolated COPR installation, most repos are never enabled globally.
# We only need to clean up repos that were enabled during the build process.
# Disable third-party repos
for repo in fedora-multimedia tailscale fedora-cisco-openh264; do
if [[ -f "/etc/yum.repos.d/${repo}.repo" ]]; then
sed -i 's@enabled=1@enabled=0@g' "/etc/yum.repos.d/${repo}.repo"
fi
done
# Disable Terra repos (installed on F42 and earlier)
for i in /etc/yum.repos.d/terra*.repo; do
if [[ -f "$i" ]]; then
sed -i 's@enabled=1@enabled=0@g' "$i"
fi
done
# Disable all COPR repos (should already be disabled by helpers, but ensure)
for i in /etc/yum.repos.d/_copr:*.repo; do
if [[ -f "$i" ]]; then
sed -i 's@enabled=1@enabled=0@g' "$i"
fi
done
# Disable RPM Fusion repos
for i in /etc/yum.repos.d/rpmfusion-*.repo; do
if [[ -f "$i" ]]; then
sed -i 's@enabled=1@enabled=0@g' "$i"
fi
done
# Disable fedora-coreos-pool if it exists
if [ -f /etc/yum.repos.d/fedora-coreos-pool.repo ]; then
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-coreos-pool.repo
fi
echo "::endgroup::"