From c228adfa5c0281353e5990479239747ebd038e5d Mon Sep 17 00:00:00 2001 From: sean Date: Wed, 24 Jul 2019 17:15:22 -0700 Subject: [PATCH] tweaks --- setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.sh b/setup.sh index 8213a9f..2290c2b 100644 --- a/setup.sh +++ b/setup.sh @@ -28,6 +28,11 @@ window=$((height - 5)) # gather input at the start devices=""; for device in $(ls /dev/disk/by-id | grep -v part); do devices="$devices $device off"; done disks=`dialog --separate-output --no-cancel --no-items --title "Root devices" --checklist "Select root OS disks:" $height $width ${window}$devices 2>&1 1>/dev/tty` +boots=`dialog --separate-output --no-cancel --no-items --title "Root devices" --checklist "Select boot drives:" $height $width ${window}$devices 2>&1 1>/dev/tty` + +alldisks=`(for d in `echo "$disks"`; do echo "$d"; done; for d in `echo "$boots"`; do echo "$d"; done) | sort -u` +echo "alldisks: $alldisks" + diskcount=`echo "$disks" | wc -l` diskoptions="12 35 5 raidz off raidz2 off raidz3 off mirror off none off" if [ "$diskcount" = "0" ] ; then echo "No disks found to use for boot device"; exit 112; fi