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

Side by Side Diff: make_factory_package.sh

Issue 6462007: make_factory_package: allow calling from outside the chroot (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 SCRIPT_ROOT=${path} 25 SCRIPT_ROOT=${path}
26 break 26 break
27 fi 27 fi
28 done 28 done
29 } 29 }
30 30
31 find_common_sh 31 find_common_sh
32 . "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) 32 . "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1)
33 # --- END COMMON.SH BOILERPLATE --- 33 # --- END COMMON.SH BOILERPLATE ---
34 34
35 # Need to be inside the chroot to load chromeos-common.sh
36 assert_inside_chroot
37
38 # Load functions and constants for chromeos-install 35 # Load functions and constants for chromeos-install
39 . "/usr/lib/installer/chromeos-common.sh" || \ 36 # NOTE: This script needs to be called from outside the chroot.
37 . "/usr/lib/installer/chromeos-common.sh" &> /dev/null || \
38 . "${SRC_ROOT}/platform/installer/chromeos-common.sh" || \
40 die "Unable to load /usr/lib/installer/chromeos-common.sh" 39 die "Unable to load /usr/lib/installer/chromeos-common.sh"
41 40
42 # Load functions designed for image processing 41 # Load functions designed for image processing
43 . "${SCRIPT_ROOT}/lib/cros_image_common.sh" || 42 . "${SCRIPT_ROOT}/lib/cros_image_common.sh" ||
44 die "Cannot load required library: lib/cros_image_common.sh; Abort." 43 die "Cannot load required library: lib/cros_image_common.sh; Abort."
45 44
46 get_default_board 45 get_default_board
47 46
48 # Flags 47 # Flags
49 DEFINE_string board "${DEFAULT_BOARD}" "Board for which the image was built" 48 DEFINE_string board "${DEFAULT_BOARD}" "Board for which the image was built"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 To run the server: 416 To run the server:
418 python2.6 devserver.py --factory_config miniomaha.conf" 417 python2.6 devserver.py --factory_config miniomaha.conf"
419 } 418 }
420 419
421 # Main 420 # Main
422 if [ -n "$FLAGS_diskimg" ]; then 421 if [ -n "$FLAGS_diskimg" ]; then
423 generate_img 422 generate_img
424 else 423 else
425 generate_omaha 424 generate_omaha
426 fi 425 fi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698