Here is a set of scripts to create a archlinux image for uConsole(CM3/CM4/CM4S) or whatever.
- Install requirements.
- For ArchLinux:
pacman -Sy --needed qemu-user-static qemu-user-static-binfmt arch-install-scripts parted dosfstools e2fsprogs
- For ArchLinux:
- Review the settings in
settings.env. Make changes if you want. - Build the OS image by running
build-image.shwith root privilege.
- Initialize pacman key database
pacman-key --init && pacman-key --populate archlinux archlinuxarm
- Resize the rootfs partition
- Detail not covered here. You can use fdisk to resize the partition, and use
resize2fsto actually expand the partition.
- Detail not covered here. You can use fdisk to resize the partition, and use
- Setup the internet connection
- Enable NetworkManager
systemd enable --now NetworkManager - Connect to WiFi
nmcli device wifi connect [SSID] password [password]
- Enable NetworkManager
- Read
PACSTRAP_PACKAGESinsettings.envto learn included packages. - Read
INSTALL_STATIC_FILESinsettings.envto learn preloaded config files. - The new privileged user is
ucon, with passworducon. You'll change it right?