From ee3e76fee3a918d01085079150fad02c7ba6edaa Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 10 Mar 2011 15:54:14 +0000 Subject: [PATCH] explicitly set configdump value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index b91fe997b..d6125206b 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -8253,6 +8253,10 @@ sub mkdsklsnode if ($imagehash{$image_name}{paging}) { $arg_string .= "-a paging=$imagehash{$image_name}{paging} "; + # add extras from the cmd line + if ($attrs{sparse_paging} ) { + $arg_string .= "-a sparse_paging=$attrs{sparse_paging} "; + } } if ($imagehash{$image_name}{resolv_conf}) { @@ -8262,6 +8266,12 @@ sub mkdsklsnode if ($imagehash{$image_name}{dump}) { $arg_string .= "-a dump=$imagehash{$image_name}{dump} "; + if ($attrs{configdump} ) { + $arg_string .= "-a configdump=$attrs{configdump} "; + } else { + # the default is selective + $arg_string .= "-a configdump=selective "; + } } if ($imagehash{$image_name}{home}) { @@ -8277,16 +8287,6 @@ sub mkdsklsnode "-a shared_home=$imagehash{$image_name}{shared_home} "; } - # add any additional supported attrs from cmd line - @attrlist = ("configdump", "sparse_paging"); - foreach my $attr (keys %attrs) - { - if (grep(/^$attr$/, @attrlist)) - { - $arg_string .= "-a $attr=$attrs{$attr} "; - } - } - # # make sure we have enough space for the new node root dir #