Merge "Add element to rebuild dracut enabling modules"

This commit is contained in:
Jenkins 2017-01-25 20:49:48 +00:00 committed by Gerrit Code Review
commit 9538a56022
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,7 @@
================
overcloud-dracut
================
Rebuilds initramfs adding all the modules needed to support
TripleO needs in terms of booting whole disk images with
enabled security. We need lvm and encryption on the images,
so adding related packages and modules to enable those.

View File

@ -0,0 +1,2 @@
package-installs
select-boot-kernel-initrd

View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
RET=$(select-boot-kernel-initrd)
KERNEL_VERSION=`echo ${RET%:*} | sed 's/vmlinuz-//g'`
RAMDISK=/boot/${RET#*:}
dracut --force --add "crypt lvm" $RAMDISK $KERNEL_VERSION

View File

@ -0,0 +1,2 @@
cryptsetup:
lvm2: