5aca301693
In preparation for enabling Dracut-based ramdisks, this change factors out functionality that is common to both busybox and Dracut ramdisks. Said functionality is moved to a ramdisk-base element which is added as a dependency of the ramdisk element. ramdisk now only contains the functionality specific to building busybox-based ramdisks. bp tripleo-juno-dracut-ramdisks Change-Id: Iad2907c8be491c88727d87ed5e5a720e5beb66c3
14 lines
337 B
Bash
Executable file
14 lines
337 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
export RAMDISK_BUILD_PATH="$TMP_MOUNT_PATH/tmp/ramdisk-build"
|
|
mkdir -p $RAMDISK_BUILD_PATH
|
|
|
|
for file in common-defaults common-functions ramdisk-defaults ramdisk-functions img-defaults img-functions ; do
|
|
cp $_LIB/$file $RAMDISK_BUILD_PATH
|
|
done
|
|
|
|
cp -r $(dirname $0)/scripts $RAMDISK_BUILD_PATH
|
|
|