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

Unified Diff: src/platform/installer/chromeos-install

Issue 2127010: fix for issue 2610 (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixed a typo on install_gpt line 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 | « no previous file | src/scripts/build_gpt.sh » ('j') | src/scripts/build_gpt.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/installer/chromeos-install
diff --git a/src/platform/installer/chromeos-install b/src/platform/installer/chromeos-install
index f0ba5c8ac2bb83c2cb1d9daf8653f378e84b24a0..3ef48d71df477bc52241d2991222a6802b599382 100755
--- a/src/platform/installer/chromeos-install
+++ b/src/platform/installer/chromeos-install
@@ -24,6 +24,8 @@ DEFINE_boolean run_as_root ${FLAGS_FALSE} \
"Allow root to run this script (Careful, it won't prompt for a password!)"
DEFINE_boolean yes ${FLAGS_FALSE} \
"Answer yes to everything"
+DEFINE_boolean recovery ${FLAGS_FALSE} \
+ "Install from a recovery image. Default: False"
# Parse command line
FLAGS "$@" || exit 1
@@ -208,6 +210,12 @@ ROOTFS_IMG=$(make_partition_dev ${SRC} 3)
OEM_IMG=$(make_partition_dev ${SRC} 8)
ESP_IMG=$(make_partition_dev ${SRC} 12)
+# For recovery image, copy from ROOT-B and KERN-B to destination
+if [ "$FLAGS_recovery" -eq "$FLAGS_TRUE" ]; then
+ KERNEL_IMG=$(make_partition_dev ${SRC} 4)
+ ROOTFS_IMG=$(make_partition_dev ${SRC} 5)
+fi
+
if [ $(uname -m) = "armv7l" ]; then
PMBRCODE=/dev/zero
else
« no previous file with comments | « no previous file | src/scripts/build_gpt.sh » ('j') | src/scripts/build_gpt.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698