| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Script to generate a factory install partition set and miniomaha.conf | 7 # Script to generate a factory install partition set and miniomaha.conf |
| 8 # file from a release image and a factory image. This creates a server | 8 # file from a release image and a factory image. This creates a server |
| 9 # configuration that can be installed using a factory install shim. | 9 # configuration that can be installed using a factory install shim. |
| 10 # | 10 # |
| 11 # miniomaha lives in src/platform/dev/ and miniomaha partition sets live | 11 # miniomaha lives in src/platform/dev/ and miniomaha partition sets live |
| 12 # in src/platform/dev/static. | 12 # in src/platform/dev/static. |
| 13 | 13 |
| 14 # Load common constants. This should be the first executable line. | 14 # Load common constants. This should be the first executable line. |
| 15 # The path to common.sh should be relative to your script's location. | 15 # The path to common.sh should be relative to your script's location. |
| 16 . "$(dirname "$0")/common.sh" | 16 . "$(dirname "$0")/common.sh" |
| 17 | 17 |
| 18 # Load functions and constants for chromeos-install | 18 # Load functions and constants for chromeos-install |
| 19 . "$(dirname "$0")/chromeos-common.sh" | 19 . "$(dirname "$0")/chromeos-common.sh" |
| 20 | 20 |
| 21 # Load functions designed for image processing | 21 . "$(dirname "$0")/lib/cros_image_common.sh" || |
| 22 . "$(dirname "$0")/image_common.sh" | 22 die "Cannot load required library: lib/cros_image_common.sh; Abort." |
| 23 | 23 |
| 24 get_default_board | 24 get_default_board |
| 25 | 25 |
| 26 # Flags | 26 # Flags |
| 27 DEFINE_string board "${DEFAULT_BOARD}" "Board for which the image was built" | 27 DEFINE_string board "${DEFAULT_BOARD}" "Board for which the image was built" |
| 28 DEFINE_string factory "" \ | 28 DEFINE_string factory "" \ |
| 29 "Directory and file containing factory image: /path/chromiumos_test_image.bin" | 29 "Directory and file containing factory image: /path/chromiumos_test_image.bin" |
| 30 DEFINE_string firmware_updater "" \ | 30 DEFINE_string firmware_updater "" \ |
| 31 "If set, include the firmware shellball into the server configuration" | 31 "If set, include the firmware shellball into the server configuration" |
| 32 DEFINE_string release "" \ | 32 DEFINE_string release "" \ |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 }, | 249 }, |
| 250 ] | 250 ] |
| 251 " >> ${OMAHA_DIR}/miniomaha.conf | 251 " >> ${OMAHA_DIR}/miniomaha.conf |
| 252 | 252 |
| 253 echo "The miniomaha server lives in src/platform/dev" | 253 echo "The miniomaha server lives in src/platform/dev" |
| 254 echo "to validate the configutarion, run:" | 254 echo "to validate the configutarion, run:" |
| 255 echo " python2.6 devserver.py --factory_config miniomaha.conf \ | 255 echo " python2.6 devserver.py --factory_config miniomaha.conf \ |
| 256 --validate_factory_config" | 256 --validate_factory_config" |
| 257 echo "To run the server:" | 257 echo "To run the server:" |
| 258 echo " python2.6 devserver.py --factory_config miniomaha.conf" | 258 echo " python2.6 devserver.py --factory_config miniomaha.conf" |
| OLD | NEW |