diff --git a/setup/so-functions b/setup/so-functions index 571270227..4dbbddecc 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1040,7 +1040,7 @@ es_heapsize() { filter_unused_nics() { - if [[ $MNIC ]]; then local grep_string="$MNIC\|bond0\|bond1"; else local grep_string="bond0\|bond1"; fi + if [[ $MNIC ]]; then local grep_string="$MNIC\|bond0"; else local grep_string="bond0"; fi # If we call this function and NICs have already been assigned to the bond interface then add them to the grep search string if [[ $BNICS ]]; then @@ -1443,7 +1443,7 @@ network_init() { title "Initializing Network" disable_ipv6 set_hostname - if [[ $is_iso || $is_desktop_iso || $MNIC == "bond1" ]]; then + if [[ $is_iso || $is_desktop_iso ]]; then set_management_interface fi } @@ -1465,16 +1465,6 @@ 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 } diff --git a/setup/so-setup b/setup/so-setup index 27aeef1f6..7875b9c99 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -292,16 +292,6 @@ 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 diff --git a/setup/so-whiptail b/setup/so-whiptail index a0c9d797b..6188d3d30 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -846,7 +846,9 @@ whiptail_management_nic() { filter_unused_nics local management_nic_options=( "${nic_list_management[@]}" ) - management_nic_options+=( "BOND" "Configure a bonded management interface" ) + if [[ $is_iso || $is_desktop_iso ]]; then + management_nic_options+=( "BOND" "Configure a bonded management interface" ) + fi 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=$?