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
This commit is contained in:
Pino Toscano 2015-04-02 15:07:33 +02:00
parent a15ab7d732
commit f7aefb1498

View File

@ -8,4 +8,5 @@ if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
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