Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Christian Rebischke
arch-boxes
Commits
933ff206
Commit
933ff206
authored
Feb 23, 2020
by
Kristian Klausen
🎉
Committed by
Christian Rebischke
Feb 24, 2020
Browse files
Add reflector-init service to the cloud image
Signed-off-by:
Kristian Klausen
<
kristian@klausen.dk
>
parent
ea7869f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
http/install-cloud.sh
View file @
933ff206
...
...
@@ -60,6 +60,23 @@ ExecStart=/usr/bin/pacman-key --populate archlinux
WantedBy=multi-user.target
EOF
# Add service for running reflector on first boot
cat
<<
EOF
>/etc/systemd/system/reflector-init.service
[Unit]
Description=Initializes mirrors for the VM
After=network.target
Wants=network.target
ConditionFirstBoot=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=reflector --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
[Install]
WantedBy=multi-user.target
EOF
# 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment