Use latest synced mirrors instead of age

configs/releng/airootfs/etc/systemd/system/reflector.service:
Use the 70 mirrors synced most recently (--latest) instead of a specific time since last sync (--age).
According to FS#67399 using 1hour as sync age is too short, as it sometimes leads to empty list.
This commit is contained in:
David Runge 2020-07-30 10:39:07 +02:00
parent b5f04dba2b
commit a96330699f
No known key found for this signature in database
GPG Key ID: 7258734B41C31549

View File

@ -9,7 +9,7 @@ ConditionKernelCommandLine=!mirror
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/reflector --protocol https --age 1 --sort rate --save /etc/pacman.d/mirrorlist ExecStart=/usr/bin/reflector --protocol https --latest 70 --sort rate --save /etc/pacman.d/mirrorlist
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10
CacheDirectory=reflector CacheDirectory=reflector