mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-24 18:41:33 -05:00
Better disks selection.
This commit is contained in:
parent
2dca5f98b1
commit
de35ad76d3
@ -8,8 +8,9 @@ set -e
|
|||||||
|
|
||||||
# Selecting the target for the installation.
|
# Selecting the target for the installation.
|
||||||
PS3="Select the disk where Arch Linux is going to be installed: "
|
PS3="Select the disk where Arch Linux is going to be installed: "
|
||||||
select ENTRY in $(lsblk -dpnoNAME);
|
select ENTRY in $(lsblk -dpnoNAME|grep -P "/dev/sd|nvme");
|
||||||
do
|
do
|
||||||
|
echo "Available disks":
|
||||||
DISK=$ENTRY
|
DISK=$ENTRY
|
||||||
echo "Installing Arch Linux on $DISK."
|
echo "Installing Arch Linux on $DISK."
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user