From b2e3df099eaa2187bf70b61e33c9dba705260084 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:58 -0400 Subject: [PATCH] Suppress useless output --- templates/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/install.sh b/templates/install.sh index 84c414e..7b6c2ea 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -172,17 +172,17 @@ done seed_config() { # Get IPMI BMC MAC for checkings - bmc_macaddr="$( ipmitool lan print | grep 'MAC Address ' | awk '{ print $NF }' )" - bmc_ipaddr="$( ipmitool lan print | grep 'IP Address ' | awk '{ print $NF }' )" + bmc_macaddr="$( ipmitool lan print 2>/dev/null | grep 'MAC Address ' | awk '{ print $NF }' )" + bmc_ipaddr="$( ipmitool lan print 2>/dev/null | grep 'IP Address ' | awk '{ print $NF }' )" # Perform DHCP on all interfaces to come online for interface in $( ip address | grep '^[0-9]' | grep 'eno\|enp\|ens\|wlp' | awk '{ print $2 }' | tr -d ':' ); do ip link set ${interface} up - pgrep dhclient || dhclient ${interface} + pgrep dhclient &>/dev/null || dhclient ${interface} >&2 done # Fetch the seed config - tftp -m binary "${seed_host}" -c get "${seed_file}" /tmp/install.seed || exit 1 + tftp -m binary "${seed_host}" -c get "${seed_file}" /tmp/install.seed >&2 || exit 1 # Load the variables from the seed config . /tmp/install.seed || exit 1