From 8cd38a0c7f25a4c1058d3d669f556e6e35b1b9d9 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 3 Mar 2011 20:17:25 +0000 Subject: [PATCH] Fix older RHEL5 stateless git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 9b1e2bfea..1758f5aa3 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -974,11 +974,11 @@ fi 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 @@ -1236,7 +1236,7 @@ EOMS 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"; #must not use env, doesn't work in older RH close($inifile); chmod(0755,"/tmp/xcatinitrd.$$/init"); chmod(0755,"/tmp/xcatinitrd.$$/bin/netstart");