]> git.wh0rd.org Git - home.git/commitdiff
cros-board: use `cros flash`
authorMike Frysinger <vapier@gentoo.org>
Wed, 16 Apr 2014 22:04:00 +0000 (18:04 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Apr 2014 22:04:00 +0000 (18:04 -0400)
.bin/cros-board

index df6aa90a8c2c57bfeacc455023fee80a4c8073fb..99c221e40de19c30de1241c76ccf09eceec1b68e 100755 (executable)
@@ -86,7 +86,7 @@ run ./build_packages \
 BUILD_IMG="./build_image --board=${BOARD} --noenable_rootfs_verification $(tfe ${ARG_TEST} test) dev"
 run ${BUILD_IMG}
 
-IMG_TO_USB="./image_to_usb.sh --board=${BOARD} -y --to=${ARG_DEV}"
+IMG_TO_USB="cros flash --yes usb://${ARG_DEV} xbuddy://local/${BOARD}/latest/dev"
 if ${ARG_DEV_USER} ; then
        run ${IMG_TO_USB}
        sync &
@@ -97,7 +97,6 @@ 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#./}"
 cat <<EOF
 
 ### LIVE