From 702e072547847497c95c581e2ff5f0308bd0625d Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 3 Jun 2010 14:27:54 +0000 Subject: [PATCH] add CRYPTMETHOD to script git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 35ec423d5..0913a4b8e 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -230,14 +230,18 @@ sub makescript { push @{$rsp->{data}}, "Unable to open passwd table."; xCAT::MsgUtils->message("E", $rsp, $callback); } - - if ($passwdtab) { - my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password'); - if ($et and defined ($et->{'password'})) { - push @scriptd, "ROOTPW=".$et->{'password'}."\n"; - push @scriptd, "export ROOTPW\n"; - } - } + + if ($passwdtab) { + my $et = $passwdtab->getAttribs({key => 'system', username => 'root'}, 'password','cryptmethod'); + if ($et and defined ($et->{'password'})) { + push @scriptd, "ROOTPW=".$et->{'password'}."\n"; + push @scriptd, "export ROOTPW\n"; + } + if ($et and defined ($et->{'cryptmethod'})) { + push @scriptd, "CRYPTMETHOD=".$et->{'cryptmethod'}."\n"; + push @scriptd, "export CRYPTMETHOD\n"; + } + } } if (!$nodesetstate) { $nodesetstate=getnodesetstate($node);}