summaryrefslogtreecommitdiff
path: root/raveos-calamares-theme/etc
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-calamares-theme/etc')
-rw-r--r--raveos-calamares-theme/etc/calamares/modules/netinstall-desktop.yaml1
-rw-r--r--raveos-calamares-theme/etc/calamares/modules/shellprocess-final.conf3
-rw-r--r--raveos-calamares-theme/etc/systemd/system/reflector-once.service14
3 files changed, 17 insertions, 1 deletions
diff --git a/raveos-calamares-theme/etc/calamares/modules/netinstall-desktop.yaml b/raveos-calamares-theme/etc/calamares/modules/netinstall-desktop.yaml
index db9c34c..3e81174 100644
--- a/raveos-calamares-theme/etc/calamares/modules/netinstall-desktop.yaml
+++ b/raveos-calamares-theme/etc/calamares/modules/netinstall-desktop.yaml
@@ -27,6 +27,7 @@
- sddm-astronaut-theme
- pipewire-jack
- hblock
+ - reflector
- raveos-tools
- name: "KDE Plasma Desktop - Alap desktop, nincs általunk témázva"
selected: false
diff --git a/raveos-calamares-theme/etc/calamares/modules/shellprocess-final.conf b/raveos-calamares-theme/etc/calamares/modules/shellprocess-final.conf
index 9a337c4..cd28eaa 100644
--- a/raveos-calamares-theme/etc/calamares/modules/shellprocess-final.conf
+++ b/raveos-calamares-theme/etc/calamares/modules/shellprocess-final.conf
@@ -22,4 +22,5 @@ script:
- "if [ -x ${ROOT}/usr/lib/raveos-gnome-theme/auto-apply.sh ]; then arch-chroot ${ROOT} /usr/lib/raveos-gnome-theme/auto-apply.sh; fi"
- "if [ -x ${ROOT}/usr/lib/raveos-cosmic-theme/auto-apply.sh ]; then arch-chroot ${ROOT} /usr/lib/raveos-cosmic-theme/auto-apply.sh; fi"
- "if [ -x ${ROOT}/usr/lib/raveos-kde-theme/auto-apply.sh ]; then arch-chroot ${ROOT} /usr/lib/raveos-kde-theme/auto-apply.sh; fi"
- - "if [ -x ${ROOT}/usr/lib/raveos-hyprland-theme/auto-apply.sh ]; then arch-chroot ${ROOT} /usr/lib/raveos-hyprland-theme/auto-apply.sh; fi" \ No newline at end of file
+ - "if [ -x ${ROOT}/usr/lib/raveos-hyprland-theme/auto-apply.sh ]; then arch-chroot ${ROOT} /usr/lib/raveos-hyprland-theme/auto-apply.sh; fi"
+ - "chroot ${ROOT} systemctl enable reflector-once.service" \ No newline at end of file
diff --git a/raveos-calamares-theme/etc/systemd/system/reflector-once.service b/raveos-calamares-theme/etc/systemd/system/reflector-once.service
new file mode 100644
index 0000000..b21c1fa
--- /dev/null
+++ b/raveos-calamares-theme/etc/systemd/system/reflector-once.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Update pacman mirrorlist with reflector
+Wants=network-online.target
+After=network-online.target
+ConditionPathExists=/etc/systemd/system/reflector-once.service
+After=multi-user.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/reflector -c HU,AT,DE,PL,CZ --protocol https --sort rate --latest 20 --download-timeout 10 --threads 5 --save /etc/pacman.d/mirrorlist
+ExecStartPost=/bin/systemctl disable reflector-once.service
+
+[Install]
+WantedBy=multi-user.target