From f5f3babb2c7b1422a319e57885650abb830503f4 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Sun, 8 Mar 2020 12:59:50 +0000 Subject: [PATCH] Text installer does not work --- installer/find-and-install | 1 + installer/rpool-install | 2 ++ lib/disk_help.sh | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/find-and-install b/installer/find-and-install index 5b3016b..6c3c18a 100755 --- a/installer/find-and-install +++ b/installer/find-and-install @@ -121,6 +121,7 @@ done . /kayak/lib/install_help.sh . /kayak/lib/disk_help.sh +SetupLog /tmp/kayak.log BuildRpoolOnly $DISKLIST rm -f $SCRATCH diff --git a/installer/rpool-install b/installer/rpool-install index 5d788f7..f77978a 100644 --- a/installer/rpool-install +++ b/installer/rpool-install @@ -38,6 +38,8 @@ echo "Installing from ZFS image $ZFS_IMAGE" . /kayak/lib/disk_help.sh . /kayak/lib/install_help.sh +SetupLog /tmp/kayak.log + prompt_hostname omniosce prompt_timezone diff --git a/lib/disk_help.sh b/lib/disk_help.sh index 0957d6b..2bd5ce1 100644 --- a/lib/disk_help.sh +++ b/lib/disk_help.sh @@ -78,7 +78,7 @@ ListDisks() { } ListDisksAnd() { - num=`echo $1 | sed sed -e 's/[^,]//g;' | wc -c` + num=`echo $1 | sed -e 's/[^,]//g;' | wc -c` ((EXPECT = num + 0)) for part in `echo $1 | sed -e 's/,/ /g;'`; do ListDisks $part