From 924ee347d2dc346b56bad35e8ebe512cc7520715 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:56 -0400 Subject: [PATCH] Finish up seed install --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index b3e9afb..83ae232 100755 --- a/install.sh +++ b/install.sh @@ -37,21 +37,21 @@ seed_config() { echo "Hello ${1}" seed_vlan="$( awk '{ for(i=1; i<=NF; i++) { - if($i ~ /pvcinstall.seed_vlan/) { + if($i ~ /pvcinstall.seed_vlan=/) { print $i; } } }' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )" seed_host="$( awk '{ for(i=1; i<=NF; i++) { - if($i ~ /pvcinstall.seed_host/) { + if($i ~ /pvcinstall.seed_host=/) { print $i; } } }' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )" seed_file="$( awk '{ for(i=1; i<=NF; i++) { - if($i ~ /pvcinstall.seed_file/) { + if($i ~ /pvcinstall.seed_file=/) { print $i; } } @@ -383,7 +383,7 @@ EOF } case ${install_option} in - on) + seed) seed_config ;; *) @@ -403,8 +403,6 @@ echo echo "LOGFILE: ${logfile}" echo -exit 0 - set -o errexit exec 1> >( tee -ia ${logfile} ) exec 2> >( tee -ia ${logfile} >/dev/null )