Control: tags -1 + patch
Control: retitle -1 autopkgtest-build-qemu does not build a working arm64 qemu 
testbed

With a patch to vmdb2 at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973467#12
and the attached patch to autopkgtest-build-qemu,
I could build an arm64 qemu testbed:
But

debci setup -s sid -a arm64 -b qemu
autopkgtest -u debci -B bash -- qemu --efi --qemu-options='-machine virt-5.1 
-cpu host' /var/lib/debci/qemu/sid-arm64.img

gave the following error:

autopkgtest [15:12:25]: starting date: 2020-10-31
autopkgtest [15:12:25]: version 5.15
autopkgtest [15:12:25]: host raspi4-bullseye; command line: 
/usr/bin/autopkgtest -u debci -B bash -- qemu --efi '--qemu-options=-machine 
virt-5.1 -cpu host' /var/lib/debci/qemu/sid-arm64.img
qemu-system-aarch64: terminating on signal 15 from pid 23113 (/usr/bin/python3)
<VirtSubproc>: failure: The VM does not start a root shell on ttyS1 already. 
The only other supported login mechanism is through --user and --password on 
the guest ttyS0
autopkgtest [15:12:54]: ERROR: testbed failure: cannot send to testbed: [Errno 
32] Broken pipe

Ryutaroh
--- usr/bin/autopkgtest-build-qemu-orig 2020-10-31 10:05:36.350588392 +0900
+++ usr/bin/autopkgtest-build-qemu      2020-10-31 14:38:34.403340017 +0900
@@ -252,12 +252,20 @@
   - mkimg: "{{ image }}"
     size: $size
 
-  - mklabel: msdos
+  - mklabel: gpt
     device: "{{ image }}"
 
   - mkpart: primary
+    fs-type: fat32
     device: "{{ image }}"
     start: 0%
+    end: 200MiB
+    tag: efipart
+
+  - mkpart: primary
+    fs-type: ext4
+    device: "{{ image }}"
+    start: 200MiB
     end: 100%
     tag: root
 
@@ -266,6 +274,9 @@
   - mkfs: ext4
     partition: root
 
+  - mkfs: vfat
+    partition: efipart
+
   - mount: root
 
   - $debootstrap_cmd: $release
@@ -279,8 +290,9 @@
       - ifupdown
     tag: root
 
-  - grub: bios
+  - grub: uefi
     tag: root
+    efi: efipart
     console: serial
 
   - chroot: root
@@ -295,6 +307,9 @@
       rootdev=\$(ls -1 /dev/mapper/loop* | sort | tail -1)
       uuid=\$(blkid -c /dev/null -o value -s UUID \$rootdev)
       echo "UUID=\$uuid / ext4 errors=remount-ro 0 1" > \$ROOT/etc/fstab
+      efidev=\$(ls -1 /dev/mapper/loop* | sort | head -1)
+      uuid=\$(blkid -c /dev/null -o value -s UUID \$efidev)
+      echo "UUID=\$uuid /boot/efi vfat rw 0 2" >> \$ROOT/etc/fstab
     root-fs: root
 
   - shell: '$script \$ROOT'

Reply via email to