| Index: image_to_vm.sh
|
| diff --git a/image_to_vm.sh b/image_to_vm.sh
|
| index 50e00e5612b33ba87277d2fcdb34f67bcd0bd8c8..49977a4bcdec4beca140d1362e817650ed4842eb 100755
|
| --- a/image_to_vm.sh
|
| +++ b/image_to_vm.sh
|
| @@ -201,6 +201,12 @@ fi
|
| # Modify the unverified usb template which uses a default usb_disk of sdb3
|
| sudo sed -i -e 's/sdb3/sda3/g' "${TEMP_MNT}/boot/syslinux/usb.A.cfg"
|
|
|
| +# Force the usbserial_generic driver to recognize the QEMU usb serial device
|
| +# The guest usb serial device is used to communicate with the QEMU monitor
|
| +sudo sed -i -e \
|
| + 's/^.*append.*/& usbserial.vendor=0x0403 usbserial.product=0x6001/' \
|
| + "${TEMP_MNT}/boot/syslinux/usb.A.cfg"
|
| +
|
| # Unmount everything prior to building a final image
|
| sync
|
| trap - INT TERM EXIT
|
|
|