#!/usr/bin/env bash # Populate the keyring in the built root from the keyring bundles # (/usr/share/pacman/keyrings, incl. the copied cachyos keyring). # This mirrors the guide; it runs inside the image you are making. # pacman-key --populate needs no network. pacman-key --init pacman-key --populate archlinux cachyos chaotic # Restore the strict live /etc/pacman.conf after pacstrap installs the # 'pacman' package, which ships a stock /etc/pacman.conf and would otherwise # overwrite this directory's configured version. install -m 0644 /root/.live-pacman.conf /etc/pacman.conf rm -f /root/.live-pacman.conf