From de35ad76d377f912eec1ec5f8eb396ecbe6980a9 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 7 Feb 2021 10:16:53 +0100 Subject: [PATCH] Better disks selection. --- easy-arch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index e448e6d..a9dbbc7 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -8,8 +8,9 @@ set -e # Selecting the target for the installation. 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 + echo "Available disks": DISK=$ENTRY echo "Installing Arch Linux on $DISK." break