Skip to content

Commit

Permalink
Improve text installer disk selection formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Mar 8, 2020
1 parent 4f13461 commit cee4531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion installer/find-and-install
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit cee4531

Please sign in to comment.