OK, so there are two building systems: qubes-builder and qubes-builderv2.
I was using the first one 'cause it’s the one from the manual referenced by official docs 'archlinux-minimal' template
There were couple hiccups with builderv2, but eventually the build has succeeded.
git clone https://github.com/QubesOS/qubes-builderv2
cd qubes-builderv2/
sudo dnf install $(cat dependencies-fedora.txt)
sudo usermod -aG docker user
sudo systemctl enable docker
sudo poweroff
# boot again
cd qubes-builderv2/
tools/generate-container-image.sh docker
nano builder.yml
####################
#builder.yml conent#
####################
# include configuration relevant for the current release
include:
- example-configs/archlinux.yml
# which repository to use to fetch sources
use-qubes-repo:
version: 4.2
testing: true
# each package built will have local build number appended to package release
# number. It makes it easier to update in testing environment
increment-devel-versions: true
# reduce output
debug: false
# this can be set to true if you do not want sources to be automatically
# fetched from git
skip-git-fetch: false
# executor configuration
executor:
type: docker
options:
image: "qubes-builder-fedora:latest"
#######
# END #
#######
# disabling git tag checks (insecure!)
nano qubesbuilder/plugins/fetch/__init__.py
# change line 132 to
# "0",
# fixing missing packages during template prep stage
nano artifacts/sources/builder-archlinux/template_archlinux/packages.list
# remove missing package names
./qb package fetch prep build
./qb template fetch prep build
sudo mv ./artifacts/templates/rpm/qubes-template-archlinux-4.2.0-202512050643.noarch.rpm /archlinux.rpm
# dom0
qvm-run --pass-io qubes-build 'cat /archlinux.rpm' > ~/archlinux.rpm
qvm-template install archlinux.rpm --nogpgcheck
P.S. Fuck akismet