manifest_version = 2

[rootfs]
url = "https://mirrors.mit.edu/archlinux/iso/2026.05.01/archlinux-bootstrap-2026.05.01-x86_64.tar.zst"
hash = "d589f01a8da58b5c88ce6e96eb2618c2e65e635e8376caf3d4b45363afc0dd6c"
compression = "zstd"
subdir = "root.x86_64"

[xbps]
url = "https://repo-default.voidlinux.org/static/xbps-static-static-0.60.4_1.x86_64-musl.tar.xz"
hash = "603b3c55e9cabd5af79b461b929b14e1556a443c97b5714d188681c2172d9e28"
compression = "xz"

[commands]
setup = """
echo "Server = https://archive.archlinux.org/repos/2026/05/01/\\$repo/os/\\$arch" > /etc/pacman.d/mirrorlist

ln -sf /proc/self/fd /dev/fd

pacman-key --init
pacman-key --populate

groupadd -g 1000 chariot
useradd -u 1000 -g 1000 -M -s /bin/bash chariot
passwd -l chariot

sed -i 's/^DownloadUser = alpm/#DownloadUser = alpm/' /etc/pacman.conf

pacman --noconfirm -Syyu
pacman --noconfirm -S @ROOT_PACKAGES@
"""
pkg_download = "pacman --noconfirm -Sw @PACKAGE@"
pkg_install = "pacman --noconfirm -S @PACKAGE@"


[ids]
root_uid = 0
root_gid = 0
user_uid = 1000
user_gid = 1000

[packages]
bsdtar = "libarchive"
git = "git"
patch = "patch"

# Root packages MUST contain bash & python3
root = [
    "coreutils",
    "gettext",
    "bash",
    "file",
    "doxygen",
    "bzip2",
    "findutils",
    "gawk",
    "bison",
    "curl",
    "diffutils",
    "flex",
    "gettext",
    "grep",
    "gzip",
    "libarchive",
    "openssl",
    "m4",
    "make",
    "perl",
    "python",
    "sed",
    "tar",
    "texinfo",
    "w3m",
    "which",
    "zlib",
    "zstd",
    "patch"
]

