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
This commit is contained in:
linggao 2010-09-17 14:48:54 +00:00
parent becef6d672
commit bab8769df5

View File

@ -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;