diskimage-builder/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module
Pino Toscano f7aefb1498 Create the dracut directory if not existing already
Make sure that the target directory for 50targetcli exists already, in
case there is no dracut installed at extra-data.d run time.

Change-Id: I85ade9e85e823b7564a5839c8b6181548a15ad41
2015-04-02 15:07:33 +02:00

12 lines
257 B
Bash
Executable file

#!/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