From 290cc8d22d9fd4865d722256bcd8726b2e213cd3 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 7 Nov 2008 14:12:16 +0000 Subject: [PATCH] -Avoid telling a non-PXE compliant client to download undionly.kpxe (Etherboot, ironically, hangs when told to do this) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2473 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 647e3d153..75d26795d 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -231,7 +231,7 @@ sub addnode if ($nrent and $nrent->{netboot} and $nrent->{netboot} eq 'pxe') { if (-f "$tftpdir/undionly.kpxe") { if ($chainent and $chainent->{currstate} and $chainent->{currstate} eq 'iscsiboot') { - $lstatements = 'if exists gpxe.bus-id { filename = \"\"; } else { filename = \"undionly.kpxe\"; } '.$lstatements; + $lstatements = 'if exists gpxe.bus-id { filename = \"\"; } else if exists client-architecture { filename = \"undionly.kpxe\"; } '.$lstatements; } else { $lstatements = 'if exists gpxe.bus-id { filename = \"pxelinux.0\"; } else if exists client-architecture { filename = \"undionly.kpxe\"; } '.$lstatements; #Only PXE compliant clients should ever receive gPXE }