raidtype=`dialog --no-items --no-cancel --title "Root pool ZFS RAID" --radiolist "Select root pool ZFS RAID type"11354 raidz off raidz2 off mirror off none off 2>&1 1>/dev/tty`
nicdevices="";for nic in $(ip -o link show | awk -F': ''{print $2}'| grep -v '^lo');donicdevices="$nicdevices$nic off";done
nicdevices="";for nic in $(ip -o link show | awk -F': ''{print $2}'| grep -v '^lo');donicdevices="$nicdevices$nic off";done
nics=`dialog --separate-output --no-cancel --no-items --title "Network devices for bridge" --checklist "Select the network devices to be bridged"$height$width${window}$nicdevices 2>&1 1>/dev/tty`
nics=`dialog --separate-output --no-cancel --no-items --title "Network devices for bridge" --checklist "Select the network devices to be bridged"$height$width${window}$nicdevices 2>&1 1>/dev/tty`
for disk in "$disks";do
IFS=$'\n'
for disk in `echo$disks`;do
# remove echo for testing
# remove echo for testing
echo"Partitioning disk $disk..."
echo"Partitioning disk $disk..."
# collect the return values, check them for errors and display them
# collect the return values, check them for errors and display them
raidtype=`dialog --no-items --no-cancel --title "Root pool ZFS RAID" --radiolist "Select root pool ZFS RAID type"11354 raidz off raidz2 off mirror off none off 2>&1 1>/dev/tty`