File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,6 +275,27 @@ actions:
275275 # Fix ping
276276 setcap cap_net_raw=ep /usr/bin/ping || chmod +s /usr/bin/ping
277277
278+ # Delete the keyring with its private key (see GHSA-4h59-f67g-5qxp)
279+ rm -rf /etc/pacman.d/gnupg
280+
281+ # Initialize the keyring at boot time to get pacman working
282+ cat << EOF > /etc/systemd/system/pacman-init.service
283+ [Unit]
284+ Description=Incus - initializes Pacman keyring
285+ Before=archlinux-keyring-wkd-sync.service
286+ After=time-sync.target
287+ ConditionPathIsDirectory=!/etc/pacman.d/gnupg
288+
289+ [Service]
290+ Type=oneshot
291+ ExecStart=/usr/bin/pacman-key --init
292+ ExecStart=/usr/bin/pacman-key --populate
293+
294+ [Install]
295+ WantedBy=multi-user.target
296+ EOF
297+ systemctl enable pacman-init.service
298+
278299 - trigger : post-packages
279300 action : |-
280301 #!/bin/sh
You can’t perform that action at this time.
0 commit comments