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

Unified Diff: mod_image_for_test.sh

Issue 3355019: Disable OEM partition mounting for test images. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: Created 10 years, 3 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_image_for_test.sh
diff --git a/mod_image_for_test.sh b/mod_image_for_test.sh
index a41c4e42f4138ca4a157d51be44fa3f5b814ebef..32e19ca4a5269caf664ea4af98c2743c8a6c3c6d 100755
--- a/mod_image_for_test.sh
+++ b/mod_image_for_test.sh
@@ -173,6 +173,7 @@ IMAGE_NAME="$(basename "$FLAGS_image")"
ROOT_FS_DIR="$IMAGE_DIR/rootfs"
STATEFUL_DIR="$IMAGE_DIR/stateful_partition"
SCRIPTS_DIR=$(dirname "$0")
+DEV_USER="chronos"
trap cleanup EXIT
@@ -198,6 +199,9 @@ http:\/\/${FACTORY_SERVER}:8080\/update/" \
else
emerge_chromeos_test
+ # Mark "OOBE completed" flag so that OEM partition is not mounted on startup.
+ sudo touch "${ROOT_FS_DIR}/home/${DEV_USER}/.oobe_completed"
+
MOD_TEST_ROOT="${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts"
# Run test setup script to modify the image
sudo GCLIENT_ROOT="${GCLIENT_ROOT}" ROOT_FS_DIR="${ROOT_FS_DIR}" \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698