mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-18 18:47:55 +00:00
![Alexander Popov](/assets/img/avatar_default.png)
Currently the 'image_device' config option in qemu.go doesn't properly support the modern '-drive' argument for describing qemu hard disks. In fact the various old ways to define qemu drives all boil down to the common form '-drive if=TYPE,bus=BUS,unit=UNIT,OPTS...' For example '-hda img' is equivalent to '-drive index=0,media=disk,file=img'. Let's make the 'image_device' config option support both forms. Signed-off-by: Alexander Popov <alex.popov@linux.com>