Fixed the hang issue of reboot/shutdown a nfs-based statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5cf269a5b6
commit
92e781fe74
@ -569,3 +569,7 @@ if grep --quiet --no-messages "Dummy resolv.conf" "$MNTDIR/etc/resolv.conf"; the
|
||||
/bin/cat /etc/resolv.conf > $MNTDIR/etc/resolv.conf
|
||||
fi
|
||||
|
||||
# Copy the fake network interface configuration file to /etc/sysconfig/network to handle
|
||||
# the issue of reboot nfs-based statelite
|
||||
/bin/cp /tmp/ifcfg-* $MNTDIR/etc/sysconfig/network
|
||||
|
||||
|
@ -1014,6 +1014,11 @@ while ! ifconfig | grep inet; do
|
||||
sleep 1
|
||||
netstart \$IFACE
|
||||
done
|
||||
# Add a fake interface configuration file for the boot interface to skip the
|
||||
# ifdown of the interface during the reboot/shutdown to skip the fs broken of
|
||||
# nfs based file system
|
||||
echo "STARTMODE=nfsroot" > /tmp/ifcfg-\$IFACE
|
||||
|
||||
ip addr add dev lo 127.0.0.1/8
|
||||
ip link set lo up
|
||||
cd /
|
||||
@ -1288,7 +1293,7 @@ EOMS
|
||||
close($inifile);
|
||||
open($inifile,">"."/tmp/xcatinitrd.$$/bin/netstart");
|
||||
print $inifile "#!/bin/bash \n";
|
||||
print $inifile "dhcpcd \${1}\n";
|
||||
print $inifile "dhcpcd \${1} -p\n";
|
||||
|
||||
#-- Bring other NICs up in /bin/netstart in initrd for NIC failover
|
||||
foreach (split /,/,$othernics) {
|
||||
|
Loading…
Reference in New Issue
Block a user