f7aefb1498
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
13 lines
257 B
Bash
Executable File
13 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
|