mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
Make oem_customization flag optional.
BUG=chromium-os:1888 TEST=Manual. build_image should run fine when oem_customization flag is not specified. Review URL: http://codereview.chromium.org/3076009
This commit is contained in:
parent
e93c60e9a9
commit
c8bba90ae4
@ -77,8 +77,7 @@ DEFINE_integer verity_max_ios 1024 \
|
||||
DEFINE_string verity_algorithm "sha1" \
|
||||
"Cryptographic hash algorithm used for kernel vboot. Default : sha1"
|
||||
|
||||
DEFINE_string oem_customization \
|
||||
"$GCLIENT_ROOT/src/platform/assets/oem_customization" \
|
||||
DEFINE_string oem_customization "" \
|
||||
"Path to directory containing OEM partner partition contents"
|
||||
|
||||
# Parse command line.
|
||||
@ -585,7 +584,7 @@ create_base_image() {
|
||||
sudo mount "${OEM_LOOP_DEV}" "${OEM_FS_DIR}"
|
||||
|
||||
# Populate OEM partner partition.
|
||||
if [ -n ${FLAGS_oem_customization} ]; then
|
||||
if [ ! -z "${FLAGS_oem_customization}" ]; then
|
||||
if [ ! -d ${FLAGS_oem_customization} ]; then
|
||||
echo "Specified OEM content directory does not exist. exiting."
|
||||
exit 1
|
||||
@ -596,6 +595,8 @@ create_base_image() {
|
||||
sudo find "${OEM_FS_DIR}" -type d -exec chmod 755 "{}" \;
|
||||
sudo find "${OEM_FS_DIR}" -type f -exec chmod 644 "{}" \;
|
||||
sudo chown -R root:root "${OEM_FS_DIR}"
|
||||
else
|
||||
echo "Empty OEM partition: OEM customizations will not be applied."
|
||||
fi
|
||||
|
||||
# -- Install packages into the root file system --
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user