From b547001868825fdb0f687ef26441f2555688a2d2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 15 Nov 2011 19:29:16 +0000 Subject: [PATCH] Try to make noderes.nfsserver optional for Red Hat installs. We'll go to the same logic as used for stateless config files... git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index d77ec8b0c..7a434f962 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1098,19 +1098,13 @@ sub mkinstall # 'serialport', 'serialspeed', 'serialflow' # ] # ); - unless ($ent and $ent->{nfsserver}) - { - $callback->( - { - error => ["No noderes.nfsserver defined for " . $node], - errorcode => [1] - } - ); - next; - } + my $instserver='!myipfn!'; #default to autodetect from boot server + if ($ent and $ent->{nfsserver}) { + $instserver=$ent->{nfsserver}; + } my $kcmdline = - "ks=http://" - . $ent->{nfsserver} + "instserver=$instserver ks=http://" + . $instserver . "/install/autoinst/" . $node; if ($maxmem) {