diskimage-builder/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module

13 lines
257 B
Text
Raw Normal View History

#!/bin/bash
set -eu
set -o pipefail
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
MODULE_PATH="/usr/lib/dracut/modules.d"
sudo mkdir -p ${TMP_MOUNT_PATH}${MODULE_PATH}
sudo cp -r $(dirname $0)/module/ ${TMP_MOUNT_PATH}${MODULE_PATH}/50targetcli