Skip to content

Commit 46d40f0

Browse files
committed
Update files
1 parent 1f9e42b commit 46d40f0

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

images_yaml/archlinux.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)