]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Use virtio-scsi for keydev drive
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 29 May 2024 12:19:17 +0000 (14:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 29 May 2024 13:24:03 +0000 (15:24 +0200)
Otherwise qemu defaults to ide for which the module isn't always
available (e.g. it's missing in the debian linux cloud images).

test/TEST-24-CRYPTSETUP/meson.build

index cef370bd656197dbcd5babca6aeb3f119f3f45c9..af41f161bfe95978ab9c4618f0d964caa2a7b991 100644 (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',