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 # |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 'factory_checksum': '${test_hash}', | 156 'factory_checksum': '${test_hash}', |
157 'release_image': 'rootfs-release.gz', | 157 'release_image': 'rootfs-release.gz', |
158 'release_checksum': '${release_hash}', | 158 'release_checksum': '${release_hash}', |
159 'oempartitionimg_image': 'oem.gz', | 159 'oempartitionimg_image': 'oem.gz', |
160 'oempartitionimg_checksum': '${oem_hash}', | 160 'oempartitionimg_checksum': '${oem_hash}', |
161 'efipartitionimg_image': 'efi.gz', | 161 'efipartitionimg_image': 'efi.gz', |
162 'efipartitionimg_checksum': '${efi_hash}', | 162 'efipartitionimg_checksum': '${efi_hash}', |
163 'stateimg_image': 'state.gz', | 163 'stateimg_image': 'state.gz', |
164 'stateimg_checksum': '${state_hash}'," > ${OMAHA_DIR}/miniomaha.conf | 164 'stateimg_checksum': '${state_hash}'," > ${OMAHA_DIR}/miniomaha.conf |
165 | 165 |
166 if [ ! -z ${FLAGS_include_firmware} ] ; then | 166 if [ ${FLAGS_include_firmware} -eq ${FLAGS_TRUE} ] ; then |
167 echo -n " | 167 echo -n " |
168 'firmware_image': 'firmware.gz', | 168 'firmware_image': 'firmware.gz', |
169 'firmware_checksum': '${firmware_hash}'," >> ${OMAHA_DIR}/miniomaha.conf | 169 'firmware_checksum': '${firmware_hash}'," >> ${OMAHA_DIR}/miniomaha.conf |
170 fi | 170 fi |
171 | 171 |
172 echo -n " | 172 echo -n " |
173 }, | 173 }, |
174 ] | 174 ] |
175 " >> ${OMAHA_DIR}/miniomaha.conf | 175 " >> ${OMAHA_DIR}/miniomaha.conf |
176 | 176 |
177 echo "The miniomaha server lives in src/platform/dev" | 177 echo "The miniomaha server lives in src/platform/dev" |
178 echo "to validate the configutarion, run:" | 178 echo "to validate the configutarion, run:" |
179 echo " python2.6 devserver.py --factory_config miniomaha.conf \ | 179 echo " python2.6 devserver.py --factory_config miniomaha.conf \ |
180 --validate_factory_config" | 180 --validate_factory_config" |
181 echo "To run the server:" | 181 echo "To run the server:" |
182 echo " python2.6 devserver.py --factory_config miniomaha.conf" | 182 echo " python2.6 devserver.py --factory_config miniomaha.conf" |
OLD | NEW |