Package: sbuild-qemu
Version: 0.88.1~bpo12+1
Severity: normal

Dear Maintainer,

Trying to create an unstable arm64 sbuild qemu img from a stable system
fails.  The command I use:

,----
| $ time sudo sbuild-qemu-create unstable --arch arm64 
https://deb.debian.org/debian --authorized-keys=<path_to_authorized_keys_file>  
# Removed authorized_keys file path to avoid privacy leak.  File does exist.
`----

And it fails with the following error (first Python exception I observe
from the log):

,----
| 2025-01-15 17:19:39 INFO Exec: ['mount', '/dev/mapper/loop0p1', 
'/tmp/tmp0n3zu1jh/boot/efi']
| 2025-01-15 17:19:39 DEBUG STDOUT:
| 2025-01-15 17:19:39 DEBUG STDERR: mount: /tmp/tmp0n3zu1jh/boot/efi: 
/dev/mapper/loop0p1 already mounted on /tmp/tmp0n3zu1jh/boot/efi.
|        dmesg(1) may have more information after failed mount system call.
| 
| 2025-01-15 17:19:39 ERROR Program failed: 32
| Traceback (most recent call last):
|   File "/usr/lib/python3/dist-packages/vmdb/app.py", line 243, in 
run_steps_helper
|     method(values, settings, state)
|   File "/usr/lib/python3/dist-packages/vmdb/plugins/grub_plugin.py", line 
103, in run
|     self.install_uefi(values, settings, state)
|   File "/usr/lib/python3/dist-packages/vmdb/plugins/grub_plugin.py", line 
133, in install_uefi
|     self.install_grub(values, settings, state, grub_package, grub_target)
|   File "/usr/lib/python3/dist-packages/vmdb/plugins/grub_plugin.py", line 
179, in install_grub
|     self.mount(chroot, efi_dev, "/boot/efi", state)
|   File "/usr/lib/python3/dist-packages/vmdb/plugins/grub_plugin.py", line 
350, in mount
|     vmdb.runcmd(["mount"] + mount_opts + [path, chroot_path])
|   File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 58, in runcmd
|     raise RuncmdError("Program failed: {}".format(p.returncode))
| vmdb.runcmd.RuncmdError: Program failed: 32
`----

This seems to suggest that it's a vmdb2 issue, but as the failure
originates from running sbuild-qemu-create I'm reporting to sbuild-qemu
as a first step just to be sure.  Please feel free to reassign.

I'm also attaching the full log in case I missed anything.

-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-30-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=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 sbuild-qemu depends on:
ii  autopkgtest      5.38~bpo12+1
ii  python3          3.11.2-1+b1
ii  python3-pexpect  4.8.0-4
ii  python3-psutil   5.9.4-1+b1
ii  qemu-system-x86  1:7.2+dfsg-7+deb12u12
ii  qemu-utils       1:7.2+dfsg-7+deb12u12
ii  sbuild           0.88.1~bpo12+1
ii  vmdb2            0.27+really.0.26-1+deb12u1

Versions of packages sbuild-qemu recommends:
ii  qemu-system-arm  1:7.2+dfsg-7+deb12u12
ii  qemu-system-ppc  1:7.2+dfsg-7+deb12u12

sbuild-qemu suggests no packages.

-- no debconf information

-- 
Regards,
Xiyue Deng

Attachment: sbuild-qemu-arm64-failure.log.gz
Description: application/gzip

Attachment: signature.asc
Description: PGP signature

Reply via email to