提交 44716b2c 编写于 作者: Y Yiqiao Pu 提交者: Lucas Meneghel Rodrigues

virttest.qemu_vm: Make boot and bootindex to work correctly

This patch will fix wrong boot setup when set 'boot = on' in cfg files
for cases need more than one disk.

When 'boot = on' set in cfg files, will first check if qemu supports
bootindex. If it does, we will use bootindex which start from 0 and
will increase 1 for each image. You can also set the bootindex in cfg
files. If it doesn't, we will setup the first image to 'boot=on', other
images will set to 'boot=off' which is the limit of boot option in qemu.

Also remove the duplicate boot setup line in add_drive()
Signed-off-by: NYiqiao Pu <ypu@redhat.com>
上级 6d531943
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册