support flags when creating osimage.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ea1fde626d
commit
70037094e5
@ -2830,19 +2830,9 @@ sub mknimimage
|
||||
chomp $paging_name;
|
||||
$newres{paging} = $paging_name;
|
||||
|
||||
# update spot with additional software and sync files
|
||||
if (
|
||||
&spot_updates(
|
||||
$callback, $::image_name, \%imagedef,
|
||||
\%::attrres, $lpp_source_name
|
||||
) != 0
|
||||
)
|
||||
{
|
||||
|
||||
# error - could not update spots
|
||||
return 1;
|
||||
}
|
||||
|
||||
# need to update spot if needed
|
||||
# but put it later, after xcat osimage obj defined since xcatchroot needs it.
|
||||
|
||||
#
|
||||
# end diskless section
|
||||
#
|
||||
@ -3037,6 +3027,26 @@ sub mknimimage
|
||||
return 1;
|
||||
}
|
||||
|
||||
# put diskless spot update after xcat obj def
|
||||
# since xcatchroot needs osimage defined first
|
||||
|
||||
if (($::NIMTYPE eq "diskless") || ($::NIMTYPE eq "dataless"))
|
||||
{
|
||||
# update spot with additional software and sync files
|
||||
if (
|
||||
&spot_updates(
|
||||
$callback, $::image_name, \%imagedef,
|
||||
\%::attrres, $lpp_source_name
|
||||
) != 0
|
||||
)
|
||||
{
|
||||
|
||||
# error - could not update spots
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Set root password in diskless images
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user