Skip to content
Snippets Groups Projects
Commit 0747fe06 authored by livio's avatar livio Committed by Libreboot project
Browse files

Improved LVM search list variable by separating medias and volumes.

Then all possible combinations are made by nesting two cycles.
parent d4c6f995
Branches
No related tags found
No related merge requests found
......@@ -71,7 +71,18 @@ function list_pmedia {
#echo $tgt_medias
}
set lvmnames="crypt-bootvol crypt-rootvol crypt-boot crypt-root grubcrypt-bootvol grubcrypt-rootvol"
# List of encrypted medias
set lvm_crypt="crypt grubcrypt debian devuan"
# List of logical volumes
set lvm_volumes="boot root bootvol rootvol"
# Fill LVM search list with every possible combination of media and volume
set lvmnames=""
for i in ${lvm_crypt}; do
for j in ${lvm_volumes}; do
lvmnames="${lvmnames} ${i}-${j}"
done
done
# Fills a variable containing possible partition list from a specified and previously detected logic media kind
function list_lmedia {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment