autopkgtest: When finding src pkg, skip binary pkgs for other archs
When looking for the src pkg, the entire Package-List is searched for every
binary package name. However, there are some rare source packages that
provide binary packages for specific arch(s), while the same binary package
is provided by another source packge for a different arch. One example
is the 'binutils' and 'binutils-mipsen' source packages; currently the
'binutils-mipsen' package provides several 'binutils-mips*' named
binary packages for intel archs, while the main 'binutils' source package
provides the same-named binary packages specifically for the mips arch.
In cases such as this, autopkgtest needs to make sure to only consider
source packages that provide the binary for the current testbed arch,
otherwise it will be confused about what source package name and what
version to look for in the archive.
tools/autopkgtest-build-lxd: pass /dev/null on stdin to lxc launch
Recent changes to lxd cause 'lxc launch' to fail if there is any input on
stdin queued, which is the case (at least) during the 'lxd' autopkgtest
included in this package, which calls autopkgtest-build-lxd from a here
document passed to a shell. It may be the case for other external uses as
well, so it's best to leave the 'lxd' autopkgtest as is and fix the
autopkgtest-build-lxd script to use lxc launch with the new restriction.
The only other call to 'lxc launch' is from autopkgtest-virt-lxd, which
passes it to check_exec(), and that function explicitly sets stdin to
/dev/null, so no change is needed there.
Use virtio-rng to passthrough RNG to qemu runner and drop haveged
haveged.service will cause massive slow downs with systemd v243 due to
changes in systemd-random-seed.serivce [1].
While haveged.service can be fixed eventually, systemd upstream
recommended to use RNG passhtrough via virtio-rng [2] instead, so we
drop the installation of haveged.