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

Unified Diff: src/platform/factory_installer/factory_install.sh

Issue 2132008: Update factory installer, factory test (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: integrate autupdate server changes Created 10 years, 7 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 | « src/platform/dev/autoupdate.py ('k') | src/platform/init/chromeos_startup » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/factory_installer/factory_install.sh
diff --git a/src/platform/factory_installer/factory_install.sh b/src/platform/factory_installer/factory_install.sh
index 171c979af432ca4e9e4e2c0379d7eecd372e8cbd..42bfea5f8d57521b4d05fb7e4b34b8766c552628 100644
--- a/src/platform/factory_installer/factory_install.sh
+++ b/src/platform/factory_installer/factory_install.sh
@@ -11,6 +11,8 @@ if [ $(id -u) -ne 0 ]; then
echo "You must run this as root."
exit 1
fi
+log "Pause to ensure ethernet connectivity"
+sleep 10
# TODO(adlr): pick an install device in a matter that works on x86 and ARM.
# This works on x86 only, afaik.
@@ -18,6 +20,7 @@ DST=/dev/sda
DST_FACTORY_PART=3
DST_RELEASE_PART=5
DST_OEM_PART=8
+DST_EFI_PART=12
DST_STATE_PART=1
log "Factory Install: Setting partition table"
@@ -33,14 +36,15 @@ echo 3 > /proc/sys/vm/drop_caches
FACTORY_CHANNEL_ARG='--force_track=factory-channel'
RELEASE_CHANNEL_ARG='--force_track=release-channel'
OEM_CHANNEL_ARG='--force_track=oempartitionimg-channel'
+EFI_CHANNEL_ARG='--force_track=efipartitionimg-channel'
STATE_CHANNEL_ARG='--force_track=stateimg-channel'
# Install the partitions
-for i in OEM STATE RELEASE FACTORY; do
+for i in EFI OEM STATE RELEASE FACTORY; do
PART=$(eval "echo \$DST_${i}_PART")
CHANNEL_ARG=$(eval "echo \$${i}_CHANNEL_ARG")
KPART="none"
-
+
log "Factory Install: Installing $i partition to $PART"
SKIP_POSTINST_ARG="--skip_postinst"
« no previous file with comments | « src/platform/dev/autoupdate.py ('k') | src/platform/init/chromeos_startup » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698