Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2022-08-07 15:59:52 +0300
committernl6720 <nl6720@gmail.com>2022-09-01 09:41:00 +0300
commitced3d3ffa384600012618612c98476a231f5fb89 (patch)
treefb9d4420dc83719338e37e21cd9b01f9ae137422
parent674f0041703a3ff0dea652436274e1634196e663 (diff)
Order pacman-init.service before archlinux-keyring-wkd-sync.service
archlinux-keyring-wkd-sync.service needs an initialized pacman keyring to work. Add BindsTo=etc-pacman.d-gnupg.mount to stop pacman-init.service if the mount unit suddenly enters inactive state.
-rw-r--r--CHANGELOG.rst3
-rw-r--r--configs/releng/airootfs/etc/systemd/system/pacman-init.service2
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index a4ca833..5766eb2 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -11,6 +11,9 @@ Added
Changed
-------
+- Order ``pacman-init.service`` before ``archlinux-keyring-wkd-sync.service`` since
+ ``archlinux-keyring-wkd-sync.service`` needs an initialized pacman keyring.
+
Removed
-------
diff --git a/configs/releng/airootfs/etc/systemd/system/pacman-init.service b/configs/releng/airootfs/etc/systemd/system/pacman-init.service
index b18f7f8..9ad2e69 100644
--- a/configs/releng/airootfs/etc/systemd/system/pacman-init.service
+++ b/configs/releng/airootfs/etc/systemd/system/pacman-init.service
@@ -2,6 +2,8 @@
Description=Initializes Pacman keyring
Requires=etc-pacman.d-gnupg.mount
After=etc-pacman.d-gnupg.mount
+BindsTo=etc-pacman.d-gnupg.mount
+Before=archlinux-keyring-wkd-sync.service
[Service]
Type=oneshot