From f7aefb1498f6f09a10ea48f7ee8417c5ffdf1baf Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 2 Apr 2015 15:07:33 +0200 Subject: [PATCH] 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 --- elements/deploy-targetcli/extra-data.d/50-add-targetcli-module | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module b/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module index 388c51243..8bff86743 100755 --- a/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module +++ b/elements/deploy-targetcli/extra-data.d/50-add-targetcli-module @@ -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