mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Creates a systemd service which executes these commands on first boot: pacman-key --init pacman-key --populate archlinux Also it makes sure /etc/pacman.d/gnupg is not absent. At last it removes /etc/machine-id to make sure systemd launches first boot services.
14 lines
259 B
SYSTEMD
14 lines
259 B
SYSTEMD
[Unit]
|
|
Description=Initializes Pacman keyring
|
|
Before=sshd.service
|
|
ConditionFirstBoot=yes
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/pacman-key --init
|
|
ExecStart=/usr/bin/pacman-key --populate archlinux
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|