]> git.wh0rd.org - home.git/commitdiff
cros-board: fix double slash and add more helpful commands
authorMike Frysinger <vapier@gentoo.org>
Tue, 17 Dec 2013 17:15:33 +0000 (12:15 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 17 Dec 2013 17:15:33 +0000 (12:15 -0500)
.bin/cros-board

index c8eb4ae5c09cf4334e0d5406c3a69ae7b832c359..df6aa90a8c2c57bfeacc455023fee80a4c8073fb 100755 (executable)
@@ -96,8 +96,8 @@ cd "${IMAGES}"
 rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d)
 
 d="~/trunk/src/scripts"
-BUILD_IMG="${d}/${BUILD_IMG#.}"
-IMG_TO_USB="${d}/${IMG_TO_USB#.}"
+BUILD_IMG="${d}/${BUILD_IMG#./}"
+IMG_TO_USB="${d}/${IMG_TO_USB#./}"
 cat <<EOF
 
 ### LIVE
@@ -105,6 +105,8 @@ ${IMG_TO_USB}
 
 ### KVM
 ${d}/image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest
+${d}/image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest --test_image
+${d}/bin/cros_start_vm --no_graphics --image_path=../build/images/${BOARD}/latest/chromiumos_qemu_image.bin
 kvm -m 1024 -vga std -net nic,model=virtio -net user,hostfwd=tcp::9222-:22 -hda ~/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
 
 ### RECOVERY