diff --git a/elements/yum-minimal/finalise.d/55-dracut-recreate b/elements/yum-minimal/finalise.d/55-dracut-recreate new file mode 100755 index 00000000..477e93ec --- /dev/null +++ b/elements/yum-minimal/finalise.d/55-dracut-recreate @@ -0,0 +1,12 @@ +#!/bin/bash + +# Recreate the initramfs within the loop device so everything gets +# picked up correctly. + +if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then + set -x +fi +set -eu +set -o pipefail + +dracut --regenerate-all --force --verbose