Package: autopkgtest
Version: 5.39
Severity: normal
File: /usr/share/autopkgtest/lib/autopkgtest_qemu.py
X-Debbugs-Cc: [email protected]
Dear Maintainer,
as I was trying to use an Ubuntu image for autopkgtest that can only be
booted with UEFI, I recognized that it was not booting since it was
using SeaBIOS even though I used --efi or --boot=efi option.
After debugging I found out that the new_session function in
autopkgtest_qemu.py does not pass efi_code and efi_data to the
QemuSession. After passing those variables, the image boots with UEFI.
These are the changes the I made:
diff --git a/lib/autopkgtest_qemu.py b/lib/autopkgtest_qemu.py
index 870633b3..b64c38db 100644
--- a/lib/autopkgtest_qemu.py
+++ b/lib/autopkgtest_qemu.py
@@ -662,6 +662,8 @@ class QemuFactory:
return QemuSession(
boot=self.boot,
+ efi_code=self.efi_code,
+ efi_data=self.efi_data,
qemu_architecture=self.qemu_architecture,
qemu_command=self.qemu_command,
qemu_options=qemu_options,
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.10.6-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_ALL to
default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages autopkgtest depends on:
ii apt-utils 2.9.8
ii libdpkg-perl 1.22.11
ii mawk 1.3.4.20240819-3
ii procps 2:4.0.4-5
ii python3 3.12.5-1
ii python3-debian 0.1.49
ii retry 1.0.5-3
Versions of packages autopkgtest recommends:
ii autodep8 0.28+nmu1
ii fakeroot 1.36-1
Versions of packages autopkgtest suggests:
pn docker-cli | docker.io <none>
pn docker.io <none>
pn fakemachine <none>
ii genisoimage 9:1.1.11-3.5
pn incus <none>
pn lxc <none>
pn lxd <none>
ii ovmf 2024.05-2
pn ovmf-ia32 <none>
pn podman <none>
ii python3-distro-info 1.7
pn qemu-efi-aarch64 <none>
pn qemu-efi-arm <none>
pn qemu-efi-riscv64 <none>
pn qemu-system <none>
ii qemu-utils 1:9.0.2+ds-2+b1
ii schroot 1.6.13-5
ii util-linux 2.40.2-7
pn vmdb2 <none>
pn zerofree <none>
-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "de_DE.UTF-8",
LC_MONETARY = "de_DE.UTF-8",
LC_ADDRESS = "de_DE.UTF-8",
LC_TELEPHONE = "de_DE.UTF-8",
LC_MESSAGES = "POSIX",
LC_NAME = "de_DE.UTF-8",
LC_MEASUREMENT = "de_DE.UTF-8",
LC_IDENTIFICATION = "de_DE.UTF-8",
LC_NUMERIC = "de_DE.UTF-8",
LC_PAPER = "de_DE.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
-- debsums errors found:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "de_DE.UTF-8",
LC_MONETARY = "de_DE.UTF-8",
LC_ADDRESS = "de_DE.UTF-8",
LC_TELEPHONE = "de_DE.UTF-8",
LC_MESSAGES = "POSIX",
LC_NAME = "de_DE.UTF-8",
LC_MEASUREMENT = "de_DE.UTF-8",
LC_IDENTIFICATION = "de_DE.UTF-8",
LC_NUMERIC = "de_DE.UTF-8",
LC_PAPER = "de_DE.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
debsums: changed file /usr/share/autopkgtest/lib/autopkgtest_qemu.py (from
autopkgtest package)