From 622e4582b8be68516ecef79d2df04dbf8ff5276b Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Tue, 9 Apr 2019 15:13:49 -0400 Subject: [PATCH] Update temp interface creation to exclude lvs --- templates/setup.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/setup.sh b/templates/setup.sh index 19202ea..fd4622d 100755 --- a/templates/setup.sh +++ b/templates/setup.sh @@ -219,14 +219,17 @@ if [ -e tar_file_apt.list ] $APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG" fi -### Temporary create and alias interface for installation -GetNics -if [ ! -z "${SECOND_PHYSICAL_INTERFACE}" ] +### Temporary create and alias interface for installation on non-lvs and non-brick nodes +if ! cat /etc/hostname|grep -q lvs0 then - PRIMARY_INTERFACE="${SECOND_PHYSICAL_INTERFACE}" + GetNics + if [ ! -z "${SECOND_PHYSICAL_INTERFACE}" ] + then + PRIMARY_INTERFACE="${SECOND_PHYSICAL_INTERFACE}" + fi + ip a add Priv_IP/My_CIDR dev $PRIMARY_INTERFACE label ${PRIMARY_INTERFACE}:0 #TODO update Variable to $3PRIMARY_INTERFACE - done + ip link set $PRIMARY_INTERFACE up fi -ip a add Priv_IP/My_CIDR dev $PRIMARY_INTERFACE label ${PRIMARY_INTERFACE}:0 #TODO update Variable to $3PRIMARY_INTERFACE - done -ip link set $PRIMARY_INTERFACE up ### Fix bug in NFS that caused failure to start at boot time if cat tar_file_apt.list | grep -q nfs -- 2.11.0