Skip to content
Snippets Groups Projects
Commit 91ad1d07 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

(partly) Revert "gitlab_runner: Initial the keyring in the base image for faster boot"

This reverts commit 466230e4.
parent 02e19f14
No related branches found
No related tags found
No related merge requests found
Pipeline #110358 passed
......@@ -32,9 +32,7 @@ qemu-img convert -f qcow2 -O raw Arch-Linux-x86_64-basic.qcow2 Arch-Linux-x86_64
loopdev="$(losetup --find --partscan --show "${image}")"
mount --mkdir "${loopdev}p3" mnt
arch-chroot mnt pacman-key --init
arch-chroot mnt pacman-key --populate
mount --mkdir --bind -o ro /etc/pacman.d/gnupg mnt/etc/pacman.d/gnupg
arch-chroot mnt systemctl disable systemd-time-wait-sync
arch-chroot mnt pacman -Sy --noconfirm --needed archlinux-keyring
......@@ -49,8 +47,8 @@ rm -f mnt/etc/machine-id mnt/etc/hostname
cp -a mnt/boot/{initramfs-linux-fallback.img,initramfs-linux.img}
rm -r mnt/etc/pacman.d/gnupg/{openpgp-revocs.d,private-keys-v1.d}/
arch-chroot mnt pacman-key --delete pacman@localhost
umount mnt/etc/pacman.d/gnupg
rmdir mnt/etc/pacman.d/gnupg
umount mnt
losetup -d "${loopdev}"
loopdev=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment