Daniel Watkins b668a9f9f9 Import patches-unapplied version 2.373 to ubuntu/xenial-proposed
Imported using git-ubuntu import.

Changelog parent: 63154a9a2f35d29fb66f3b90ba72d76df4d14503

New changelog entries:
  * Set timeout options so ppc64el cloud images don't display a grub boot
    menu (matching the behaviour of other cloud images).
  * Specify a regex to run-parts so that cloud image extra scripts are found
    and executed.
2016-01-28 12:19:50 +00:00

16 lines
295 B
Bash
Executable File

#!/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
# Export the common functions to the extras
. /build/config/functions
# Cleaner execution
/bin/run-parts --regex ".*\.binary" "${extra_d}"