MMDEBSTRAP-AUTOPKGTEST-BUILD-QEMU(1) | User Contributed Perl Documentation | MMDEBSTRAP-AUTOPKGTEST-BUILD-QEMU(1) |
mmdebstrap-autopkgtest-build-qemu - autopkgtest-build-qemu without vmdb2 but mmdebstrap and EFI boot
mmdebstrap-autopkgtest-build-qemu [OPTIONS] --boot=efi RELEASE IMAGE
mmdebstrap-autopkgtest-build-qemu is a mostly compatible drop-in replacement for autopkgtest-build-qemu(1) with two main differences: Firstly, it uses mmdebstrap(1) instead of vmdb2(1) and thus is able to create QEMU disk images without requiring superuser privileges. Secondly, it uses systemd-boot(7) and thus only supports booting via EFI. For architectures for which autopkgtest-virt-qemu(1) does not default to EFI booting you must pass --boot=efi when invoking the autopkgtest virt backend.
--arch=ARCH is an alias for this option.
The script must be a POSIX shell script, and should not depend on bash-specific features. This script will be executed inside a chroot(1) call in the virtual machine root filesystem.
Make sure, that /path/to/debian-unstable.img is a path that the unshared user has access to. This can be done by ensuring world-execute permissions on all path components or by creating the image in a world-readable directory like /tmp before copying it into its final location.
$ mmdebstrap-autopkgtest-build-qemu --boot=efi --arch=amd64 unstable /path/to/debian-unstable.img [...] $ autopkgtest mypackage -- qemu --boot=efi --dpkg-architecture=amd64 /path/to/debian-unstable.img
Make sure to add --boot=efi to both the mmdebstrap-autopkgtest-build-qemu as well as the autopkgtest-virt-qemu invocation.
autopkgtest-build-qemu(1), autopkgtest-virt-qemu(1), mmdebstrap(1), autopkgtest(1)
2024-02-26 | perl v5.38.2 |