28 lines
904 B
Diff
28 lines
904 B
Diff
From bfc156d725d3262d331a771a2be06e3dd9eeb6be Mon Sep 17 00:00:00 2001
|
|
From: zhangzikang <zhangzikang@kylinos.cn>
|
|
Date: Wed, 25 Sep 2024 14:26:54 +0800
|
|
Subject: [PATCH] Fix get_bmc_ip failure caused by search rule issue
|
|
|
|
---
|
|
contrib/exchange-bmc-os-info.init.redhat | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/contrib/exchange-bmc-os-info.init.redhat b/contrib/exchange-bmc-os-info.init.redhat
|
|
index b7ec43f..98efbe6 100644
|
|
--- a/contrib/exchange-bmc-os-info.init.redhat
|
|
+++ b/contrib/exchange-bmc-os-info.init.redhat
|
|
@@ -199,8 +199,8 @@ get_bmc_ip()
|
|
#Thanks to http://ingvar.blog.redpill-linpro.com
|
|
for CHANNEL in `seq 1 14`
|
|
do
|
|
- [ $(${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
|
|
- | grep -q "^Set") ] || break
|
|
+ ${IPMI_TOOL} lan print ${CHANNEL} 2>/dev/null \
|
|
+ | grep -q "^IP Address .*:" && break
|
|
done
|
|
|
|
# Get BMC_IPv4 and BMC_URL from BMC
|
|
--
|
|
2.27.0
|
|
|