Skip to content

Commit

Permalink
configib: don't rm config file for el9/nmcli
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrichert committed Aug 15, 2024
1 parent 0a3852e commit c89dbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xCAT/postscripts/configib
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}`
Expand Down

0 comments on commit c89dbe3

Please sign in to comment.