Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Unified Diff: image_to_vm.sh

Issue 5174009: Add support for saving VM state when a test fails. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix nit Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/cros_run_vm_test ('k') | lib/cros_vm_constants.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « bin/cros_run_vm_test ('k') | lib/cros_vm_constants.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698