This project provides a script that helps set up Arch Linux ARM on a drive such as an SD card, M.2 drive, or hard disk. It guides you through the process with a text-based interface where you choose the drive and the type of file system. After that, the script runs all steps automatically.
Source: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4
- Shows you a list of available drives so you can pick the one you want to use.
- Lets you choose the file system for the main partition (ext4, btrfs, or xfs).
- Lets you choose the kernel flavor (linux‑rpi or linux‑rpi‑16k).
- Prompts for hostname, username, user password, root password, locale, and timezone.
- Prompts for networking setup (systemd‑networkd + systemd‑resolved or NetworkManager).
- Optionally prompts for Wi‑Fi SSID, password, and country code.
- Wipes and partitions the selected drive.
- Formats the partitions (boot partition as FAT32, root partition with your chosen file system).
- Downloads and installs Arch Linux ARM.
- Creates an
fstabfile so the system knows how to mount the partitions. - Generates a correct Raspberry Pi 4/5
cmdline.txtusing the root partition’s PARTUUID. - Enters the new system and installs the selected kernel and its headers.
- Installs the tools needed for the chosen file system and
dosfstools. - Installs
sudoand configures the wheel group in/etc/sudoers. - Creates the user account, sets passwords, and enables systemd services for networking and time sync.
- If Wi‑Fi was configured, installs
iwd(for systemd‑networkd) orNetworkManager+iw, sets the regulatory domain, and writes the Wi‑Fi configuration. - Cleans up and unmounts the drive.
- Run the script as root.
- Arch Linux system with
dialog,lsblk,sfdisk,mkfs.vfat,bsdtar,curl,arch-chroot,blkid,partprobe, andudevadminstalled. - For Wi‑Fi setup:
iwdorNetworkManager+iwwill be installed automatically if you choose Wi‑Fi.
- Download the script and make it executable:
chmod +x installer.sh
- Run it as root:
sudo ./installer.sh
- Follow the on-screen prompts to select the drive, file system, kernel, hostname, user, passwords, locale, timezone, networking, and optionally Wi‑Fi SSID, password, and country code.
- The script will handle the rest automatically.
- The chosen drive will be completely wiped. Make sure you select the correct one.
- The script uses a text interface with uniform windows for a consistent experience.
- By the end, you’ll have a bootable Arch Linux ARM drive for Raspberry Pi 4/5 set up with your chosen kernel, user, network, and optional Wi‑Fi. The install works safely on the target drive, and you can turn on extras like remote access (SSH), easy name‑based access on your network (Avahi), a swap file, automatic storage upkeep, and simple boot settings like GPU memory and SPI/I²C.