File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
build-tests/x86/tumbleweed/test-image-luks
dracut/modules.d/99kiwi-lib Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4848 </type >
4949 </preferences >
5050 <preferences profiles =" ReEncryptExtraBootWithPass" >
51- <type image =" oem" filesystem =" ext4" kernelcmdline =" console=ttyS0 rd.kiwi.oem.luks.reencrypt rd.kiwi.oem.luks.reencrypt_randompass quiet" firmware =" uefi" luks =" linux " luks_version =" luks2" luks_pbkdf =" pbkdf2" bootpartition =" true" >
51+ <type image =" oem" filesystem =" ext4" kernelcmdline =" console=ttyS0 rd.kiwi.oem.luks.reencrypt rd.kiwi.oem.luks.reencrypt_randompass quiet" firmware =" uefi" luks =" random " luks_version =" luks2" luks_pbkdf =" pbkdf2" bootpartition =" true" >
5252 <luksformat >
5353 <option name =" --cipher" value =" aes-xts-plain64" />
5454 <option name =" --key-size" value =" 256" />
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ function reencrypt_luks {
8181 " ${device} " 2>&1 | sed -u ' s/.* \([0-9]*\)[0-9.]*%.*/\1/'
8282 ) > " ${progress} " &
8383 run_progress_dialog " ${load_text} " " ${title_text} "
84- if [ -e " ${keyfile} " ]; then
85- # re-add keyfile if present
84+ if [ -e " ${keyfile} " ] && [ ! -e " ${new_keyfile} " ] ; then
85+ # re-add keyfile if present and no other keyfile was created
8686 cryptsetup --key-file " ${passphrase_file} " luksAddKey \
8787 " ${device} " " ${keyfile} "
8888 fi
You can’t perform that action at this time.
0 commit comments