Finish up seed install
This commit is contained in:
parent
0dcb39a2f5
commit
924ee347d2
10
install.sh
10
install.sh
|
@ -37,21 +37,21 @@ seed_config() {
|
||||||
echo "Hello ${1}"
|
echo "Hello ${1}"
|
||||||
seed_vlan="$( awk '{
|
seed_vlan="$( awk '{
|
||||||
for(i=1; i<=NF; i++) {
|
for(i=1; i<=NF; i++) {
|
||||||
if($i ~ /pvcinstall.seed_vlan/) {
|
if($i ~ /pvcinstall.seed_vlan=/) {
|
||||||
print $i;
|
print $i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )"
|
}' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )"
|
||||||
seed_host="$( awk '{
|
seed_host="$( awk '{
|
||||||
for(i=1; i<=NF; i++) {
|
for(i=1; i<=NF; i++) {
|
||||||
if($i ~ /pvcinstall.seed_host/) {
|
if($i ~ /pvcinstall.seed_host=/) {
|
||||||
print $i;
|
print $i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )"
|
}' <<<"${kernel_cmdline}" | awk -F'=' '{ print $NF }' )"
|
||||||
seed_file="$( awk '{
|
seed_file="$( awk '{
|
||||||
for(i=1; i<=NF; i++) {
|
for(i=1; i<=NF; i++) {
|
||||||
if($i ~ /pvcinstall.seed_file/) {
|
if($i ~ /pvcinstall.seed_file=/) {
|
||||||
print $i;
|
print $i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -383,7 +383,7 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
case ${install_option} in
|
case ${install_option} in
|
||||||
on)
|
seed)
|
||||||
seed_config
|
seed_config
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -403,8 +403,6 @@ echo
|
||||||
echo "LOGFILE: ${logfile}"
|
echo "LOGFILE: ${logfile}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
exec 1> >( tee -ia ${logfile} )
|
exec 1> >( tee -ia ${logfile} )
|
||||||
exec 2> >( tee -ia ${logfile} >/dev/null )
|
exec 2> >( tee -ia ${logfile} >/dev/null )
|
||||||
|
|
Loading…
Reference in New Issue