Show more disk info

This commit is contained in:
Claire West 2025-12-22 10:09:16 -05:00
parent e6592d47c6
commit fad53c5f58

View file

@ -264,10 +264,11 @@ until keyboard_selector; do : ; done
# Choosing the target for the installation.
info_print "Available disks for the installation:"
mapfile -t ARR < <(lsblk -dpno NAME,SIZE,MODEL | grep -P "/dev/sd|nvme|vd");
PS3="Please select the number of the corresponding disk (e.g. 1): "
select ENTRY in $(lsblk -dpnoNAME|grep -P "/dev/sd|nvme|vd");
select ENTRY in "${ARR[@]}";
do
DISK="$ENTRY"
DISK="$(ARR=($ENTRY);echo ${ARR[0]})"
info_print "Arch Linux will be installed on the following disk: $DISK"
break
done