Skip to content

Arch Linux New Install Bootstrap Steps

Published: at 11:11 PM

Although I am continually delighted by arch linux, one thing I find frustrating is the ‘bootstrap’ process when using arch in something like an LXC / PVE container. It’s rather annoying that these somewhat convoluted steps must be taken to do a simple system update or package install. I’m documenting here so that I and maybe others have a convenient place to reference it.

note

Assumes you are using the basic arch linux image in a proxmox virtualization environment

Once you can ssh in, (or continue in the PVE console, yuck), you will need to enable the pacman mirrorlist from here (uncomment the US section at the bottom) and copy it to /etc/pacman.d/mirrorlist

You can then run the following commands:

pacman-key --init
pacman-key --populate archlinux
pacman -Syy --noconfirm archlinux-keyring

You are now ready to update with pacman -Syyu --noconfirm

Now you can run ansible via ssh, but be sure to include the new container in your ansible inventory.

more info