From a7731785aeb928ace93a176a9c574267a00836e4 Mon Sep 17 00:00:00 2001 From: Kroy Date: Mon, 5 Nov 2018 15:43:19 -0600 Subject: T955: Integrating EFI into the installer --- scripts/install/install-functions | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts/install/install-functions') diff --git a/scripts/install/install-functions b/scripts/install/install-functions index d241e040..a038686c 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -174,10 +174,13 @@ select_drive () { local drv='' # list the drives in /proc/partitions. Remove partitions and empty lines. # the first grep pattern looks for devices named c0d0, hda, and sda. - drives=$(cat /proc/partitions | \ - awk '{ if ($4!="name") { print $4 } }' | \ - egrep "c[0-9]d[0-9]$|[hsv]d[a-z]$" | \ - egrep -v "^$") + #drives=$(cat /proc/partitions | \ + # awk '{ if ($4!="name") { print $4 } }' | \ + # egrep "c[0-9]d[0-9]$|[hsv]d[a-z]$" | \ + # egrep -v "^$") + + #should be better about finding installable drives + drives=$(lsblk -dn -o name -I8) # take the first drive as the default drv=$(echo $drives | /usr/bin/awk '{ print $1 }') -- cgit v1.2.3