Show management bond option consistently

This commit is contained in:
Mike Reeves
2026-05-05 15:22:40 -04:00
parent f17da4e68b
commit 3b714db0bf
3 changed files with 22 additions and 4 deletions
+11 -1
View File
@@ -1443,7 +1443,7 @@ network_init() {
title "Initializing Network"
disable_ipv6
set_hostname
if [[ ( $is_iso || $is_desktop_iso ) ]]; then
if [[ $is_iso || $is_desktop_iso || $MNIC == "bond1" ]]; then
set_management_interface
fi
}
@@ -1465,6 +1465,16 @@ network_init_whiptail() {
whiptail_network_notice
whiptail_dhcp_warn
whiptail_management_nic
if [[ $MNIC == "bond1" ]]; then
whiptail_dhcp_or_static
if [ "$address_type" != 'DHCP' ]; then
collect_int_ip_mask
collect_gateway
collect_dns
collect_dns_domain
fi
fi
;;
esac
}
+10
View File
@@ -292,6 +292,16 @@ if ! [[ -f $install_opt_file ]]; then
# Warn about the dangers of DHCP
whiptail_dhcp_warn
whiptail_management_nic
if [[ $MNIC == "bond1" ]]; then
whiptail_dhcp_or_static
if [ "$address_type" != 'DHCP' ]; then
collect_int_ip_mask
collect_gateway
collect_dns
collect_dns_domain
fi
fi
fi
# Initializing the network based on the previous information
network_init
+1 -3
View File
@@ -846,9 +846,7 @@ whiptail_management_nic() {
filter_unused_nics
local management_nic_options=( "${nic_list_management[@]}" )
if [[ $is_iso || $is_desktop_iso ]]; then
management_nic_options+=( "BOND" "Configure a bonded management interface" )
fi
management_nic_options+=( "BOND" "Configure a bonded management interface" )
MNIC=$(whiptail --title "$whiptail_title" --menu "Please select the NIC you would like to use for management.\n\nUse the arrow keys to move around and the Enter key to select." 20 75 12 "${management_nic_options[@]}" 3>&1 1>&2 2>&3 )
local exitstatus=$?