2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Conditionally include clevis-dracut

If not using LUKS, don't bother with clevis-dracut.

In 8.1, clevis-dracut will cause problems with network
in initrd time.
This commit is contained in:
Jarrod Johnson 2020-07-14 14:40:05 -04:00
parent 74af077651
commit dad68bdf63
2 changed files with 3 additions and 1 deletions

View File

@ -34,10 +34,10 @@ reboot
%packages
@^minimal-environment
clevis-dracut
chrony
rsync
python3
%include /tmp/cryptpkglist
%end
%pre

View File

@ -46,9 +46,11 @@ if [ -f "/run/install/cmdline.d/01-autocons.conf" ]; then
fi
cryptboot=$(grep ^encryptboot: /etc/confluent/confluent.deploycfg | awk '{print $2}')
LUKSPARTY=''
touch /tmp/cryptpkglist
if [ "$cryptboot" == "tpm2" ]; then
LUKSPARTY="--encrypted --passphrase=$(cat /etc/confluent/confluent.apikey)"
echo $cryptboot >> /tmp/cryptboot
echo clevis-dracut >> /tmp/cryptpkglist
fi