Shinyspace

Make your own archiso

2026-02-10

the Arch live environment is pretty good already, but for convenience we can change a few small things to make using it more enjoyable.

I like having SSH access the moment it's booted, and to make that secure enough i add my SSH public key to /root/authorized_keys . I also do not use the US keyboard layout, and i don't like the "PC beep" it does in certain situations.

For installing arch, i also add some files like /etc/locale.gen and /etc/locale.conf so i can simply copy these into the new arch installation and don't have to edit manually.

Preparation

Prepare releng

Prepare airootfs (archiso root filesystem)

Copy our wanted files into the "releng" dir:

Make our iso and write it to usb

Now you should be able to boot that usb into a live environment with your chosen settings. If you assigned your device's MAC address a fixed IP address in your router, you can easily "ssh root@192.168.0.yourip" and have access if you did the authorized_keys file and your ssh setup correctly. if not you'll have to find the device's IP first. if SSH gives you trouble because of "changed host identification", you should be able to remove the entry with ssh-keygen -R 192.168.0.yourip and try again.

Fun fact: you could make an entire distro out of this by adding some graphical desktop environment and a few other things. but that will take some maintenance, my setup has been the same for years now and i haven't had issues (as long as i remember to get the lastest releng profile and delete the work dir).