| 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
|
|
|