mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
Disable OEM partition mounting for test images.
BUG=chromium-os:3828 TEST=Boot with test image. Check that OEM partiotion is not mounted at /mnt/partner_partition Review URL: http://codereview.chromium.org/3355019 Change-Id: Ib7c15010df7d7f30e49149c42034b26a13d69573
This commit is contained in:
parent
cc19005e15
commit
0ae1505d89
@ -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}" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user