Ask for hostname earlier in setup

This commit is contained in:
William Wernert
2021-03-11 16:55:06 -05:00
parent 6d431c0bda
commit 6842204981
2 changed files with 3 additions and 3 deletions

View File

@@ -1758,7 +1758,6 @@ network_init() {
network_init_whiptail() { network_init_whiptail() {
case "$setup_type" in case "$setup_type" in
'iso') 'iso')
collect_hostname
whiptail_management_nic whiptail_management_nic
whiptail_dhcp_or_static whiptail_dhcp_or_static
@@ -1772,7 +1771,6 @@ network_init_whiptail() {
'network') 'network')
whiptail_network_notice whiptail_network_notice
whiptail_dhcp_warn whiptail_dhcp_warn
collect_hostname
whiptail_management_nic whiptail_management_nic
;; ;;
esac esac

View File

@@ -204,6 +204,7 @@ if ! [[ -f $install_opt_file ]]; then
if [[ $setup_type == 'iso' ]] && [ "$automated" == no ]; then if [[ $setup_type == 'iso' ]] && [ "$automated" == no ]; then
whiptail_first_menu_iso whiptail_first_menu_iso
if [[ $option == "CONFIGURENETWORK" ]]; then if [[ $option == "CONFIGURENETWORK" ]]; then
collect_hostname
network_init_whiptail network_init_whiptail
whiptail_management_interface_setup whiptail_management_interface_setup
network_init network_init
@@ -217,6 +218,7 @@ if ! [[ -f $install_opt_file ]]; then
true true
fi fi
fi fi
collect_hostname
whiptail_install_type whiptail_install_type
else else
source $install_opt_file source $install_opt_file