mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
74af077651
commit
dad68bdf63
@ -34,10 +34,10 @@ reboot
|
||||
|
||||
%packages
|
||||
@^minimal-environment
|
||||
clevis-dracut
|
||||
chrony
|
||||
rsync
|
||||
python3
|
||||
%include /tmp/cryptpkglist
|
||||
%end
|
||||
|
||||
%pre
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user