summaryrefslogtreecommitdiff
path: root/scripts/install/install-functions
diff options
context:
space:
mode:
authorKroy <kroy@kroy.io>2018-11-05 15:43:19 -0600
committerKroy <kroy@kroy.io>2018-11-05 15:43:19 -0600
commita7731785aeb928ace93a176a9c574267a00836e4 (patch)
tree8ca0e77a6f4c1123d162568e7b9d284684b20317 /scripts/install/install-functions
parent018860f21eb4151df5e0b719ad9b66331786ac4e (diff)
downloadvyatta-cfg-system-a7731785aeb928ace93a176a9c574267a00836e4.tar.gz
vyatta-cfg-system-a7731785aeb928ace93a176a9c574267a00836e4.zip
T955: Integrating EFI into the installer
Diffstat (limited to 'scripts/install/install-functions')
-rwxr-xr-xscripts/install/install-functions11
1 files changed, 7 insertions, 4 deletions
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 }')