diff options
author | nl6720 <nl6720@gmail.com> | 2022-08-29 16:01:46 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2022-09-01 17:15:18 +0300 |
commit | e23d3c57a02b6b6d1062a878b792dfcce2c7004d (patch) | |
tree | 2173e1a93216cc05a0f801b63d1e136d9061f8c9 | |
parent | dec52b8eb012addc6b1173203e2cc10e2e6e655b (diff) |
Enable systemd-time-wait-sync.service and order pacman-init.service after time-sync.target
If the hardware clock is not in UTC, but instead UTC+X, the pacman keyring may end up with keys created in the future.
Ensure the time is synced before starting pacman-init.service.
This fixes the equivalent of archiso's https://gitlab.archlinux.org/archlinux/archiso/-/issues/190 for arch-boxes.
-rw-r--r-- | images/base.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/images/base.sh b/images/base.sh index 68fbb8b..63b8162 100644 --- a/images/base.sh +++ b/images/base.sh @@ -23,6 +23,7 @@ function pre() { [Unit] Description=Initializes Pacman keyring Before=sshd.service cloud-final.service archlinux-keyring-wkd-sync.service +After=time-sync.target ConditionFirstBoot=yes [Service] @@ -60,6 +61,7 @@ systemctl enable sshd systemctl enable systemd-networkd systemctl enable systemd-resolved systemctl enable systemd-timesyncd +systemctl enable systemd-time-wait-sync systemctl enable pacman-init.service systemctl enable reflector-init.service EOF |