> What should be the steps to reproduce this bug on my machine using
> debci/autopkgtest ?

(Assuming you are using Debian Bullseye amd64.)

# debci setup -f -b qemu -a amd64 -s sid
The above will create /var/lib/debci/qemu/sid-amd64.img
"debci setup" sometimes fails, in such a case please retry...

The above image has /sbin/init==systemd-sysv, of course.
As open-iscsi has no problem with /sbin/init==systemd-sysv,
We need to replace it with sysvinit-core in the VM image.

# apt-get --install-recommends install virt-manager
# cp /var/lib/debci/qemu/sid-amd64.img /var/lib/libvirt/images
# virt-manager (this can be run by an ordinary user belonging to libvirt group)

Start VM on /var/lib/libvirt/images/sid-amd64.img
Login as root (no password) into the Linux running on VM.
on-VM# apt-get install sysvinit-core
on-VM# echo "S0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100" >>/etc/inittab
on-VM# shutdown -h -P now

/var/lib/libvirt/images/sid-amd64.img should have /sbin/init==sysvinit-core now.

autopkgtest -B -u debci -o some-dir-for-logging open-iscsi -- qemu --debug 
--show-boot /var/lib/libvirt/images/sid-amd64.img
The test should get stuck at apt-get install open-iscsi...

Best regards, Ryutaroh

Reply via email to