From bab8769df524f80badcc02c02bdd331286ada5d5 Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 17 Sep 2010 14:48:54 +0000 Subject: [PATCH] added linuximage.nodebootif and otherifce to the expoted images git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/imgport.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/imgport.pm b/xCAT-server/lib/xcat/plugins/imgport.pm index a2fac025a..7247631ba 100644 --- a/xCAT-server/lib/xcat/plugins/imgport.pm +++ b/xCAT-server/lib/xcat/plugins/imgport.pm @@ -249,7 +249,7 @@ sub get_image_info { } #from linuximage table - (my $attrs1) = $linuximagetab->getAttribs({imagename => $imagename}, 'template', 'pkglist', 'pkgdir', 'otherpkglist', 'otherpkgdir', 'exlist', 'postinstall', 'rootimgdir', 'netdrivers', 'kernelver'); + (my $attrs1) = $linuximagetab->getAttribs({imagename => $imagename}, 'template', 'pkglist', 'pkgdir', 'otherpkglist', 'otherpkgdir', 'exlist', 'postinstall', 'rootimgdir', 'nodebootif', 'otherifce', 'netdrivers', 'kernelver'); if (!$attrs1) { $callback->({error=>["Cannot find image \'$imagename\' from the linuximage table."],errorcode=>[1]}); return 0; @@ -1056,6 +1056,12 @@ sub set_config { if ($data->{kernelver}) { $keyhash{kernelver} = $data->{kernelver}; }; + if ($data->{nodebootif}) { + $keyhash{nodebootif} = $data->{nodebootif}; + }; + if ($data->{otherifce}) { + $keyhash{otherifce} = $data->{otherifce}; + }; $linuxtab->setAttribs({imagename => $osimage }, \%keyhash ); $linuxtab->commit;