test: Use virtio-scsi for keydev drive

Otherwise qemu defaults to ide for which the module isn't always
available (e.g. it's missing in the debian linux cloud images).
This commit is contained in:
Daan De Meyer 2024-05-29 14:19:17 +02:00
parent ac09c21d45
commit eb47645e21

View file

@ -15,7 +15,8 @@ integration_tests += [
'luks.options=0d318174-56b0-4d6e-a324-ac1e7e7d235d=x-initrd.attach',
],
'qemu-args' : [
'-drive', 'format=raw,cache=unsafe,file=@0@'.format(project_build_root / 'mkosi.output/keydev.raw'),
'-drive', 'id=keydev,if=none,format=raw,cache=unsafe,file=@0@'.format(project_build_root / 'mkosi.output/keydev.raw'),
'-device', 'scsi-hd,drive=keydev',
],
'mkosi-args' : integration_test_template['mkosi-args'] + [
'--runtime-size=11G',