mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
crosutils: move image_common.sh to lib/cros_image_common.sh
The team is moving utility/library scripts into 'lib' folder. image_common.sh should follow this policy. Also refined the parameter check of mk_memento_images.sh BUG=chromium-os:5208 TEST=./make_factory_package.sh --factory PATH_TO_FACTORY --release PATH_TO_RELEASE; # factory bundle created successfully ./mk_memento_images.sh PATH_TO_PART2 PATH_TO_PART3 # update.gz created successfully ./mk_memento_images.sh PATH_TO_IMGE 2 3 # update.gz created successfully Change-Id: I3afecf05da2832986723f28b595045d0540ea9e9 Review URL: http://codereview.chromium.org/4825004
This commit is contained in:
parent
c60e567799
commit
bcc60b625d
@ -19,7 +19,8 @@
|
||||
. "$(dirname "$0")/chromeos-common.sh"
|
||||
|
||||
# Load functions designed for image processing
|
||||
. "$(dirname "$0")/image_common.sh"
|
||||
. "$(dirname "$0")/lib/cros_image_common.sh" ||
|
||||
die "Cannot load required library: lib/cros_image_common.sh; Abort."
|
||||
|
||||
get_default_board
|
||||
|
||||
|
@ -10,13 +10,13 @@
|
||||
|
||||
set -e
|
||||
|
||||
LIB_IMAGE_COMMON="$(dirname "$0")/image_common.sh"
|
||||
if ! . "$LIB_IMAGE_COMMON"; then
|
||||
echo "Missing required library: $LIB_IMAGE_COMMON. Cannot continue."
|
||||
# Load functions designed for image processing
|
||||
if ! . "$(dirname "$0")/lib/cros_image_common.sh"; then
|
||||
echo "ERROR: Cannot load required library: lib/cros_image_common.sh; Abort."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$2" -o -z "$1" ]; then
|
||||
if [ -z "$2" -o -z "$1" ] || [ "${#@}" -ne 2 -a "${#@}" -ne 3 ]; then
|
||||
echo "usage: $0 path/to/kernel_partition_img path/to/rootfs_partition_img"
|
||||
echo " or $0 path/to/chromiumos_img kern_part_no rootfs_part_no"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user