From 6761a5f8ef04bc7e55ff33f50ac79161bc741668 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 13 Sep 2010 19:55:16 +0000 Subject: [PATCH] move litesetup to mkdsklsnode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 27 ++++++++-------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index e41fdcf2f..8da91ceb3 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -1426,19 +1426,6 @@ srvnode."; } } - # - # check/do statelite setup - # - my $statelite=0; - if ($imagedef{$image_name}{shared_root}) { - - # if this has a shared_root resource then - # it might need statelite setup - # For now check all the nodes in the group?? - TBD - my @nodes = ('all'); - $statelite=xCAT::InstUtils->dolitesetup($image_name, \%imagedef, \@nodes, $callback, $subreq); - } - # # if this is an update then check each SN and remove the spot if it exists # @@ -5472,14 +5459,20 @@ sub updatespot } } - # if we have a shared_root res then modify dd_boot to call - # aixlitesetup - still might not have statelite files but won't hurt - my $statelite=0; + # + # check/do statelite setup + # if ($imghash{$image}{shared_root}) { - $statelite=1; + + # if this has a shared_root resource then + # it might need statelite setup + # For now check all the nodes in the group?? - TBD + my @nodes = ('all'); + my $rc=xCAT::InstUtils->dolitesetup($image, \%imghash, \@nodes, $callback, $subreq); } # Modify the rc.dd-boot script to set the ODM correctly + my $statelite=1; my $boot_file = "$spot_loc/lib/boot/network/rc.dd_boot"; if (&update_dd_boot($boot_file, $callback, $statelite, $subreq) != 0) {