Commit 933ff206 authored by Kristian Klausen's avatar Kristian Klausen 🎉 Committed by Christian Rebischke
Browse files

Add reflector-init service to the cloud image

Signed-off-by: Kristian Klausen's avatarKristian Klausen <>
parent ea7869f1
......@@ -60,6 +60,23 @@ ExecStart=/usr/bin/pacman-key --populate archlinux
# Add service for running reflector on first boot
cat <<EOF >/etc/systemd/system/reflector-init.service
Description=Initializes mirrors for the VM
ExecStart=reflector --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# enabling important services
systemctl daemon-reload
systemctl enable sshd
......@@ -67,6 +84,7 @@ systemctl enable haveged
systemctl enable systemd-networkd
systemctl enable systemd-resolved
systemctl enable pacman-init.service
systemctl enable reflector-init.service
if [ -b "/dev/sda" ]; then
grub-install /dev/sda
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment