diff options
| author | Andrii Klymenko <a.klymenko@vyos.io> | 2026-08-17 13:28:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-17 13:28:41 +0300 |
| commit | 6e1936489237e852d3abaa756889d389a1bb0d01 (patch) | |
| tree | c8354a043df8505749d2b69ef77d89dfc99458eb /scripts | |
| parent | d7af8eed79c7a138e9fda0c7ea0ed02e97d6a60c (diff) | |
| parent | cc7e069760c0fb5205b525f77bad3cba60ba2120 (diff) | |
| download | vyos-build-6e1936489237e852d3abaa756889d389a1bb0d01.tar.gz vyos-build-6e1936489237e852d3abaa756889d389a1bb0d01.zip | |
Merge pull request #1271 from c-po/smoketest-raid-uefi
Testsuite: T9217: use separate SCSI controller for RAID-1 UEFI testcase
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 42f810ef..c8229ad8 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -302,8 +302,14 @@ def get_qemu_cmd(name, enable_uefi, disk_img, raid=None, iso_img=None, tpm=False -device scsi-hd,bus=scsi0.0,drive=drive-hd1,id=hd1,bootindex=1' if raid: - cmd += f' -drive format={disk_format},file={raid},if=none,media=disk,id=drive-hd2,readonly=off' \ - f' -device scsi-hd,bus=scsi0.0,drive=drive-hd2,id=hd2,bootindex=2' + # RAID member disks each get their own virtio-scsi-pci controller. + # OVMF only appears to honor QEMU's per-device "bootindex" when disks + # sit behind separate PCI controllers - sharing one controller via + # SCSI LUN makes it always boot LUN 0 regardless of bootindex, which + # breaks the RAID-failure simulation's boot-priority swap under UEFI. + cmd += f' -device virtio-scsi-pci,id=scsi1' \ + f' -drive format={disk_format},file={raid},if=none,media=disk,id=drive-hd2,readonly=off' \ + f' -device scsi-hd,bus=scsi1.0,drive=drive-hd2,id=hd2,bootindex=2' if tpm: cmd += f' -chardev socket,id=chrtpm,path={tpm_sock}' \ |
