2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Load ipmi_powernv for ppc64 arch

This commit is contained in:
Obihörnchen 2022-12-09 17:59:34 +01:00 committed by GitHub
parent 4c3404619f
commit 108943ee74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,8 +109,12 @@ if ! ipmitool -V 2>/dev/null| grep "version"; then
fi
# Add ipmi_devintf module to allow the ipmitool operation in-band
if grep -q "^ppc64" <<< "$(uname -m)"; then
modprobe ipmi_powernv
else
modprobe ipmi_si
fi
modprobe ipmi_devintf
modprobe ipmi_si
for parm in `cat /proc/cmdline`; do
key=`echo $parm|awk -F= '{print $1}'`