image_to_live.sh: allow executing inside the chroot
The script seems to run fine from inside the chroot,
remove the assertion forcing to execute script outside the chroot.
That's part of a larger work for running the VMtests using the QEMU/KVM binary
inside the chroot, so we get a modern and consistent version of QEMU.
BUG=chromium:605616
TEST='./bin/ctest --board=amd64-generic --type=vm --no_graphics
--quick_update --suite=smoke --whitelist_chrome_crashes'
TEST='cbuildbot --remote -g 340240 -g 340582 amd64-generic-paladin'
Change-Id: I1bc53c8d29483858414eee5f4658fe4c0f065ee2
Reviewed-on: https://chromium-review.googlesource.com/340582
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/host/image_to_live.sh b/host/image_to_live.sh
index be0fd40..8c11ad5 100755
--- a/host/image_to_live.sh
+++ b/host/image_to_live.sh
@@ -536,8 +536,6 @@
main() {
echo "$DEPRECATION_WARNING"
- assert_outside_chroot
-
cd "${SCRIPTS_DIR}"
FLAGS "$@" || exit 1