From cee4531799a33d88e0efb68b038957e7b80fd006 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Sun, 8 Mar 2020 14:49:26 +0000 Subject: [PATCH] Improve text installer disk selection formatting --- installer/find-and-install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/find-and-install b/installer/find-and-install index 6c3c18a..f160b02 100755 --- a/installer/find-and-install +++ b/installer/find-and-install @@ -21,8 +21,11 @@ keyboard_layout=${1:-US-English} SCRATCH=/tmp/di.$$ # In a KVM, the disks don't show up on the first invocation of diskinfo. # More investigation required so, for now, run it twice. +echo +echo "Detecting hard disks..." +echo diskinfo -diskinfo > $SCRATCH +diskinfo | sed 's/ //' > $SCRATCH numdisks=`wc -l $SCRATCH | awk '{print $1}'` numdisks=$(($numdisks - 1))