diskimage-builder/elements/select-boot-kernel-initrd/extra-data.d/99-copy-dib-img-functions

12 lines
299 B
Text
Raw Normal View History

#!/bin/bash
# Copy elements-functions into chroot so we can access the get_kernel_image function
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
sudo mkdir -p $TMP_MOUNT_PATH/lib/diskimage-builder
sudo cp -t $TMP_MOUNT_PATH/lib/diskimage-builder $_LIB/img-functions