From: <jbj...@us...> - 2011-03-03 19:30:26
|
Revision: 8978 http://xcat.svn.sourceforge.net/xcat/?rev=8978&view=rev Author: jbjohnso Date: 2011-03-03 19:30:19 +0000 (Thu, 03 Mar 2011) Log Message: ----------- Fix older RHEL5 stateless images Modified Paths: -------------- xcat-core/branches/2.5/xCAT-server/share/xcat/netboot/rh/genimage Modified: xcat-core/branches/2.5/xCAT-server/share/xcat/netboot/rh/genimage =================================================================== --- xcat-core/branches/2.5/xCAT-server/share/xcat/netboot/rh/genimage 2011-03-03 19:08:04 UTC (rev 8977) +++ xcat-core/branches/2.5/xCAT-server/share/xcat/netboot/rh/genimage 2011-03-03 19:30:19 UTC (rev 8978) @@ -972,11 +972,11 @@ export IFACE=\$IFACE -netstart +netstart \$IFACE while ! ifconfig | grep inet; do echo -e "\${RED}Failed to acquire address, retrying \${RESET}" sleep 5 - netstart + netstart \$IFACE done ifconfig lo 127.0.0.1 ifconfig lo up @@ -1228,7 +1228,7 @@ open($inifile,">"."/tmp/xcatinitrd.$$/bin/netstart"); print $inifile "#!/sbin/nash\n"; - print $inifile "network --device \$IFACE --bootproto dhcp\n"; + print $inifile "network --device \${1} --bootproto dhcp\n"; close($inifile); chmod(0755,"/tmp/xcatinitrd.$$/init"); chmod(0755,"/tmp/xcatinitrd.$$/bin/netstart"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |