mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2026-01-01 09:27:34 +00:00
Merge pull request #70 from cv4x/more-disk-info
Show more information during disk selection (size, name).
This commit is contained in:
commit
7d2818b4ba
1 changed files with 3 additions and 2 deletions
|
|
@ -264,10 +264,11 @@ until keyboard_selector; do : ; done
|
||||||
|
|
||||||
# Choosing the target for the installation.
|
# Choosing the target for the installation.
|
||||||
info_print "Available disks 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): "
|
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
|
do
|
||||||
DISK="$ENTRY"
|
DISK="$($ENTRY | awk '{print $1;}')"
|
||||||
info_print "Arch Linux will be installed on the following disk: $DISK"
|
info_print "Arch Linux will be installed on the following disk: $DISK"
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue