From c89dbe309bcf9e176627418dbd0fd73ef5627c32 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Thu, 15 Aug 2024 11:30:40 -0700 Subject: [PATCH] configib: don't rm config file for el9/nmcli --- xCAT/postscripts/configib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/configib b/xCAT/postscripts/configib index ea1ea35d78..b1c19c6da7 100755 --- a/xCAT/postscripts/configib +++ b/xCAT/postscripts/configib @@ -177,7 +177,7 @@ then exit fi - if [ $OS_name != 'ubuntu' ]; then + if [[ $OS_name != 'ubuntu' ]] && [[ ! "$OSVER" =~ ^(rhels9|alma9|rocky9) ]]; then if [ $OS_name == 'suse' ] then dir="/etc/sysconfig/network" @@ -192,7 +192,7 @@ then rm -f $dir/ifcfg-$nic 2>&1 1>/dev/null done - else + elif [ $OS_name == 'ubuntu' ]; then interfaces="/etc/network/interfaces" for tmp in `sed -n "/auto ib/=" ${interfaces}`