Run so-preflight during setup

This commit is contained in:
William Wernert
2021-11-02 11:18:23 -04:00
parent 9a9d1480de
commit e6adb46364
4 changed files with 66 additions and 10 deletions

View File

@@ -345,9 +345,24 @@ else
rm -rf $install_opt_file >> "$setup_log" 2>&1
fi
if [[ -z $is_airgap ]]; then
percentage=0
{
installer_progress_loop 'Running preflight checks...' &
progress_bg_proc=$!
./so-preflight true "$setup_log" >> $setup_log 2>&1
preflight_ret=$?
kill -9 "$progress_bg_proc"
wait "$progress_bg_proc" &> /dev/null
if [[ $preflight_ret -gt 0 ]] && ! ( whiptail_preflight_err ); then
whiptail_cancel
fi
} | progress '...'
fi
percentage=0
{
installer_progress_loop & # Run progress bar to 98 in ~8 minutes while waiting for package installs
installer_progress_loop 'Checking that all required packages are installed and enabled...' & # Run progress bar to 98 in ~8 minutes while waiting for package installs
progress_bg_proc=$!
installer_prereq_packages
install_success=$?