mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-18 07:53:29 +00:00
Imported using git-ubuntu import. Changelog parent: 8d6e24efc75872c5321ca41c8176be76736a452f New changelog entries: * snaps: Fixes for snap pre-seeding (LP: #1775710) * Backport: Refactor functions out of ubuntu-cpc and ubuntu-server hooks. * Add dependency on distro-info for snap preseeding
20 lines
469 B
Bash
Executable File
20 lines
469 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 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"
|
|
|
|
# Export the common functions to the extras
|
|
. config/functions
|
|
|
|
# Cleaner execution
|
|
/bin/run-parts --exit-on-error --regex ".*\.binary" "${extra_d}"
|