Rootfs builder for Arch Linux ARM on PinePhone (Pro)/PineTab(2)
(only tested with Pinephone Pro as I don't own the OG or the PineTab/2)
generate Image on a Btrfs Root with snapper for Snapshot/rollback

Default User/Pass : alarm/123456
req. [-a architecture] architecture = aarch64 or armv7
req. [-d device] device = pinephone pinephone-pro pinetab
req. [-u ui] ui = barebone phosh plasma sxmo
[-h hostname]
[--username username]
[--password password]
[--osk-sdl]
[--noconfirm]
[--cachedir directory] directory = directory path for the pkgcache
[--no-cachedir]
Example : sudo ./build -a aarch64 -d pinephone-pro -u ui phosh
Example with custom Info: sudo ./build -a aarch64 -d pinephone-pro -u ui phosh -h Pine-Arch-Btrfs --username kaida --password 1234
If you want to cross-build the image from another architecture, you will need to use QEMU for the second build stage.