A simple installer for Arch Linux
Originally started on it back in 2018 and has been changing ever since. I've been primarily using it when building VMs with Packer
- A new bare metal or virtual machine
- Booted an Arch ISO
- Internet access (can be avoided with f.ex preloading a USB with the installer)
- When the ISO has been booted run the following commands:
cd /tmp wget https://github.com/husjon/arch_installer/archive/refs/tags/v0.2.0.tar.gz tar xfzv v0.2.0.tar.gz cd arch_installer-v0.2.0
- Copy
_template.sh
inhost-variables
and make any changes you see fit. - When done, run the following command, replacing
<HOSTNAME>
with the name of the file you copied. The.sh
extension should be omitted../arch-install.sh <HOSTNAME> INSTALL
- The installer will now run through lall the steps.
- Loads in
global-variables
and ahost-variables
based on the input arguments. - Updates the mirror (if set).
- Formats and partitions the disk defined in the
host-variable
. - Runs
pacstrap
with the packages defined in bothglobal-variables
and thehost-variable
- When the
pacstrap
finishes it usesarch-chroot
to run the finalizing steps- Set timezone
- Sets and generates locale and keymap
- Sets the hostname
- Creates a new initramfs
- Sets up the bootloader
- Sets a default password of the root user
- Enables
systemd-networkd
andsystemd-resolved
- Enables
sshd
After all this, the only requires step is to reboot the machine and shortly after it should be booting into the new installation.