Skip to content

clux/provision

Repository files navigation

provision

ci status

Arch Linux provisioning scripts with some Mac bolt-ons.

Usage

If you already have a desktop, then you can just run tag specific runners:

just core # generally everything, ask for sudo
just arch # arch specific only, ask for sudo
just cargo # install cargo clis not in package mangers

Note that apart from language specific package managers (lpms) we install OS packages out-of-band via either pacstrap or macstrap.

Initial Arch Setup

This repository also contains a bunch of experimental scripts to set up an arch machine from scratch. Use at own caution.

Prerequisites

You need two USB sticks for the arch deployment.

  1. live environment
  2. genprov generated volume

Bootstrap

Boot into the live environment using EFI boot, mount the provisioning stick on /prov, and start the show:

export DCHOSTNAME="hprks" # host we are installing to
export DCDISK=/dev/sda # disk we are re-partitioning (and wiping) for installation
/prov/live.sh # 3 minutes unattended after setting of crypt pass

Note that $DCHOSTNAME must exist in hosts.

Then boot to a root user (with pass set in prompt) then run bootstap:

./firstboot.sh # 5 min unattended middle

This will ask for a new $USER password at the end, and ask you to run the first ansible role.

Unsafe Packaging

The goal is to remove all of these: