2015-11-12 14:58:28 -07:00
|
|
|
#!/bin/bash
|
|
|
|
# Execute extra binary hooks.
|
|
|
|
|
|
|
|
my_dir=$(dirname $(readlink -f ${0}))
|
|
|
|
extra_d=${my_dir}/extra
|
|
|
|
|
|
|
|
if [ ! -d ${my_dir}/extra ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2018-06-07 17:35:12 -07:00
|
|
|
export IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
|
|
|
export CLOUD_IMG_STR="$IMAGE_STR"
|
|
|
|
export FS_LABEL="cloudimg-rootfs"
|
|
|
|
|
2015-12-07 11:44:40 -07:00
|
|
|
# Export the common functions to the extras
|
2017-05-12 21:20:22 +02:00
|
|
|
. config/functions
|
2015-12-07 11:44:40 -07:00
|
|
|
|
2016-01-18 19:58:50 -07:00
|
|
|
# Cleaner execution
|
2017-05-12 11:47:09 -07:00
|
|
|
/bin/run-parts --exit-on-error --regex ".*\.binary" "${extra_d}"
|