d/t/unshare-qemuwrapper: copy APT preferences into the VM's chroot
The autopkgtest d/t/unshare
uses sbuild
, which fails on Ubuntu lunar
(sbuild 0.83.1ubuntu1) as the chroot setup cannot find adduser
(not in the chroot as it's now an alternative dependency in apt
).
This is fixed in lunar-proposed (sbuild 0.84.1ubuntu2; commit
0d35fa01) since it no longer depends on
adduser
in the chroot.
However, d/t/unshare-qemuwrapper
runs d/t/unshare
in a QEMU VM,
but its image still does not ship sbuild
from lunar-proposed,
thus unshare
fails anyway (and its parent unshare-qemuwrapper
).
The reason is, even though the apt sources are used to build the
vm disk image thus lunar-proposed
is available, it is not used
because apt preferences (autopkgtest --apt-pocket=proposed=src:...
)
are not copied in.
This is now required as lunar has -proposed pocket w/ NotAutomatic.
So copy all APT preferences into the VM's chroot.
This change is only missing change to get Ubuntu back in sync again.
Bug-Ubuntu: https://launchpad.net/bugs/2000015