From 102aa513e46eccef19c56f8e748455c370c031d4 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 10 Sep 2012 19:35:23 +0000 Subject: [PATCH] bug fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index b9b90afc7..02ad68d28 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -697,13 +697,21 @@ sub makescript if ($setbootfromnet) { - push @scriptd, "setbootfromnet\n"; + if (!exists($post_hash{setbootfromnet})) + { + $post_hash{setbootfromnet} = 1; + push @scriptd, "setbootfromnet\n"; + } } # add setbootfromdisk if the nodesetstate is install and arch is ppc64 if (($nodesetstate) && ($nodesetstate eq "install") && ($arch eq "ppc64")) { - push @scriptd, "setbootfromdisk\n"; + if (!exists($post_hash{setbootfromdisk})) + { + $post_hash{setbootfromdisk} = 1; + push @scriptd, "setbootfromdisk\n"; + } } ###Please do not remove or modify this line of code!!! xcatdsklspost depends on it