2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-08-03 16:06:59 +00:00

Merge pull request #7655 from xcat2/backport-7624-to-2.18

[Backport 2.18] fix(genesis): only wait 20s for NIC init on ppc64
This commit is contained in:
Vinícius Ferrão
2026-07-23 16:44:05 -03:00
committed by GitHub
3 changed files with 6 additions and 6 deletions
@@ -46,11 +46,11 @@ while :; do tmux new-session < /dev/tty2 &> /dev/tty2 ; done &
# The section below is just for System P LE hardware discovery
# Need to wait for NIC initialization
sleep 20
ARCH="$(uname -m)"
if [[ ${ARCH} =~ ppc64 ]]; then
# Need to wait for NIC initialization (System P LE discovery only)
sleep 20
# load all network driver modules listed in /lib/modules/<kernel>/modules.dep file
KERVER=`uname -r`
for line in `cat /lib/modules/$KERVER/modules.dep | awk -F: '{print \$1}' | sed -e "s/\(.*\)\.ko.*/\1/"`; do
@@ -46,11 +46,11 @@ while :; do screen -ln < /dev/tty2 &> /dev/tty2 ; done &
# The section below is just for System P LE hardware discovery
# Need to wait for NIC initialization
sleep 20
ARCH="$(uname -m)"
if [[ ${ARCH} =~ ppc64 ]]; then
# Need to wait for NIC initialization (System P LE discovery only)
sleep 20
# load all network driver modules listed in /lib/modules/<kernel>/modules.dep file
KERVER=`uname -r`
for line in `cat /lib/modules/$KERVER/modules.dep | awk -F: '{print \$1}' | sed -e "s/\(.*\)\.ko.*/\1/"`; do
+2 -2
View File
@@ -46,11 +46,11 @@ while :; do screen -ln < /dev/tty2 &> /dev/tty2 ; done &
# The section below is just for System P LE hardware discovery
# Need to wait for NIC initialization
sleep 20
ARCH="$(uname -m)"
if [[ ${ARCH} =~ ppc64 ]]; then
# Need to wait for NIC initialization (System P LE discovery only)
sleep 20
# load all network driver modules listed in /lib/modules/<kernel>/modules.dep file
KERVER=`uname -r`
for line in `cat /lib/modules/$KERVER/modules.dep | awk -F: '{print \$1}' | sed -e "s/\(.*\)\.ko.*/\1/"`; do