Skip to content

BigfootACA/arch-image-builder

Repository files navigation

arch-image-builder

A tool to build flashable and bootable image for Arch Linux

Install requirements

Arch Linux

Install required packages

pacman -S p7zip rsync wget pyalpm python-yaml python-libarchive-c

For cross build (UNTESTED)

pacman -S qemu-user-static-binfmt

Debian / Ubuntu (Debian-based)

Install required packages

apt update
apt install -y pacman-package-manager gpg gpg-agent wget libalpm-dev libssl-dev libarchive-dev libgpgme-dev libcurl4-openssl-dev libmount-dev p7zip rsync python3-pip python3-venv
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt

For cross build (UNTESTED)

apt install -y qemu-user-static

Example

Build using preset

python build.py -p ayn-odin2-ufs-gnome-global -m bfsu,tuna

Manual build

python build.py -c target/ayn-odin2-sdcard,locale/zh-cn,desktop/gnome -m bfsu,tuna

Options

Option Description
-C, --clean Clean workspace before build
-m MIRROR, --mirror MIRROR Select mirror to download package
-p PRESET, --preset PRESET Select preset to create package
-c CONFIG, --config CONFIG Select configs to build
-o WORKSPACE, --workspace WORKSPACE Set workspace for builder
-a ARTIFACTS, --artifacts ARTIFACTS Set artifacts folder for builder
-d, --debug Enable debug logging
-G, --no-gpgcheck Disable GPG check
-r, --repack Repack rootfs only

Known issues

Failed to start gpg-agent

gpg: starting migration from earlier GnuPG versions
gpg: error running '/usr/bin/gpg-agent': exit status 2
gpg: failed to start gpg-agent '/usr/bin/gpg-agent': General error
gpg: can't connect to the gpg-agent: General error
gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.
gpg: migration aborted

gpg-agent unix socket path too long, please use shorter path for workspace

License

SPDX: GPL-3.0-or-later

About

Build bootable image for Arch Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages