You've already forked al-installer
Reduce duplicate irrelevant partitions during mounting when using LUKS & LVM
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
# immutable variables {
|
||||
|
||||
readonly DIST="Archlabs" # Linux distributor
|
||||
readonly VER="1.6.10" # Installer version
|
||||
readonly VER="1.6.11" # Installer version
|
||||
readonly LIVE="liveuser" # Live session user name
|
||||
readonly TRN="/installer" # Translation path
|
||||
readonly MNT="/mnt/install" # Install mountpoint
|
||||
@ -1027,11 +1027,14 @@ select_root_partition() {
|
||||
if (( LUKS == 1 && LVM == 0 )); then
|
||||
ROOT_PART="/dev/mapper/$LUKS_NAME"
|
||||
decrease_part_count "$LUKS_PART"
|
||||
elif (( LUKS == 1 && LVM == 1 )); then
|
||||
decrease_part_count "$LUKS_PART"
|
||||
decrease_part_count "/dev/mapper/$LUKS_NAME"
|
||||
fi
|
||||
|
||||
if (( COUNT == 1 )); then
|
||||
if (( COUNT == 1 )) && [[ $ROOT_PART == "" ]]; then
|
||||
ROOT_PART="$(awk 'NF > 0 {print $1}' <<< "$PARTS")"
|
||||
infobox "$_PrepMount" "\nOnly one partition available: $ROOT_PART\n"
|
||||
infobox "$_PrepMount" "\nOnly one partition available for root (/): $ROOT_PART\n"
|
||||
elif [[ $ROOT_PART == "" || $LVM -eq 1 ]]; then
|
||||
tput civis
|
||||
ROOT_PART="$(dialog --cr-wrap --stdout --backtitle "$BT" --title "$_PrepMount" \
|
||||
|
Reference in New Issue
Block a user