Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiP: Fix TPM DUK retries/vocabilary (again) and CapsLock warning #1592

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
initrd/bin/kexec-save-default: remove sort to store luks devices in s…
…uggested_devices.

Otherwise presented order is /dev/sdb1 /dev/sda2

Signed-off-by: Thierry Laurion <[email protected]>
tlaurion committed Jan 18, 2024

Verified

This commit was signed with the committer’s verified signature.
JLLeitschuh Jonathan Leitschuh
commit 37a250d951eb4a1859f3b246fcb89d833fdb872c
2 changes: 1 addition & 1 deletion initrd/bin/kexec-save-default
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ DEBUG "LVM num_lvm: $num_lvm, lvm_suggest: ${lvm_suggest[*]}"
# get all LUKS container devices
devices_suggest=($(blkid | cut -d ':' -f 1 | while read device; do
if cryptsetup isLuks "$device"; then echo "$device"; fi
done | sort))
done))
num_devices=${#devices_suggest[@]}

if [ "$num_devices" -eq 1 ] && [ -s "${devices_suggest[*]}" ]; then