Re: mmdebstrap with non-amd64 ubuntu
I think I figured it out. It's ugly, but appears to work:
mmdebstrap --aptopt 'Acquire::https::fatty.secretsauce.net::Verify-Peer=false' --arch=amd64,arm64 noble tst \
--setup-hook 'echo "
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-proposed main restricted universe multiverse
" > $1/etc/apt/sources.list; bash -i'
And
DEB_BUILD_OPTIONS=nocheck \
sbuild \
--host=arm64 \
--arch-any \
--no-arch-all \
--no-source \
--profiles=nocheck,cross \
-d focal \
--anything-failed-commands '%s' \
--chroot-setup-commands 'echo "
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb [trusted=yes arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
deb [trusted=yes arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-proposed main restricted universe multiverse
" > $1/etc/apt/sources.list; bash -i' \
--extra-repository="deb [trusted=yes] http://mrcal.secretsauce.net/packages/$distro/public/ $distro main"
So I'm overwriting the sources.list with the "correct" uris. Is this
right? If so, can we add a note to the mmdebstrap and/or sbuild
manpages? I can send the patch.
Thanks!
Reply to: