aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-06-07 01:40:33 +0700
committerShulhan <ms@kilabit.info>2025-12-24 13:53:46 +0700
commit0e203fa35544ac1db582c89c913af9bef6911ade (patch)
tree4545e03bc9969840c990cdd1b44c4910d1c4ab87
parent7c5aa938241175ba5cbc57468b6e4eeeb507df2a (diff)
downloadcompute-archlinux-image-builder-0e203fa35544ac1db582c89c913af9bef6911ade.tar.xz
all: importing build.kilabit.info key on pacman-init.service
The "pacman-key --init" does not needs to be run anymore since it will be handled by "archlinux-keyring-wkd-sync.timer".
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
-rw-r--r--sys/etc/systemd/system/pacman-init.service6
3 files changed, 8 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index e6e5e7b..caebcbf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
*.html
+*.log
*.tar.gz
diff --git a/Makefile b/Makefile
index 93438aa..f01f957 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,10 @@ publish:
awwan local gcloud-image-publish.aww 5-
awwan local gcloud-image-cleanup.aww 5-
+.PHONY: test
+test:
+ awwan local gcloud-image-test.aww 4-18
+
## Preview the .md files in local using ciigo [1].
.PHONY: serve-doc
serve-doc:
diff --git a/sys/etc/systemd/system/pacman-init.service b/sys/etc/systemd/system/pacman-init.service
index ed515f4..60af106 100644
--- a/sys/etc/systemd/system/pacman-init.service
+++ b/sys/etc/systemd/system/pacman-init.service
@@ -1,12 +1,12 @@
[Unit]
Description=Pacman keyring initialization
-ConditionDirectoryNotEmpty=!/etc/pacman.d/gnupg
+Wants=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/usr/bin/pacman-key --init
-ExecStart=/usr/bin/pacman-key --populate archlinux
+ExecStart=/usr/bin/pacman-key --recv-key B24B7E71D51210D9292E1B3E4A5360B500C9C4F0
+ExecStart=/usr/bin/pacman-key --lsign-key B24B7E71D51210D9292E1B3E4A5360B500C9C4F0
[Install]
WantedBy=multi-user.target