On 01/24/11 09:16 AM, Nirmal Agarwal wrote:
Hi Mary and all
I tried putting a custom script which will remove the package and add
the package from the local hosted repository.I have added the checkpoint
after "Boot Archive Initialization". It fails stating that it cannot
remove the package(package I am modifying is system/kernel) since it
depends on other packages installed. Since we have changes in lot many
packages and removing all the dependencies and adding all the new
packages will be cumbersome task. Do we have some other way so that I
can install listed packages directly from repo created after full-build.
You shouldn't need a separate checkpoint to do this. To overlay
packages from your private development repository, you should specify
your development repository first in the software section, before the
main development or release repo, and remove entire from the list of
packages so that the particular consolidation build you're working with
can float ahead to the rest of the WOS. For example, when I'm using
modified install packages, that section of the manifest might look like
below. Same thing can be done with an ON nightly.
Dave
<!--
Software section: defines the payload for the transfer checkpoints.
-->
<software name="transfer-ips-install">
<destination>
<image img_root="/%{//build_data.mountpoint}/pkg_image"
action="create">
<img_type completeness="full"/>
<property val="true">flush-content-cache-on-success</property>
</image>
</destination>
<source>
<publisher name="install-nightly">
<origin
name="file:///space/work/slim_boot/packages/i386/nightly-nd/repo.redist"/>
</publisher>
<publisher name="solaris">
<origin name="file:///net/zhadum/export/install/solaris_repo"/>
<!--
If mirrors for this publisher need to be set, specify them
here.
-->
<!-- Uncomment before using
<mirror name="mirror.example.com"></mirror>
-->
</publisher>
<!--
If additional publishers need to be set, they can be set here
-->
<!-- Uncomment before using
<publisher name="solaris">
<origin name="http://example.com"></origin>
<mirror name="mirror1.example.com"></mirror>
<mirror name="mirror2.example.com"></mirror>
</publisher>
-->
</source>
<!--
List of packages used to form the installed image
By default the latest build available in the specified IPS
repository
is installed. If another build is required, the build number
has to be
appended to the 'entire' package in the following form:
<name>pkg:/[email protected]#</name>
-->
<software_data action="install" type="IPS">
<name>pkg:/system/install/media/internal</name>
<name>pkg:/system/install/text-install</name>
<name>pkg:/auto_install</name>
</software_data>
<software_data action="uninstall" type="IPS">
<name>pkg:/auto_install</name>
</software_data>
</software>
Regards
Nirmal
Mary Ding wrote:
Nirmal:
In build 156, DC was completely rewritten. An overview
of the changes is here:
http://hub.opensolaris.org/bin/view/Project+caiman/Distribution+Constructor+Changes
You would essentially need to do the following:
a) Run DC and pause it at the 'set-ips-attributes'
checkpoint.
b) Write a script that copies the changed binaries
to $BUILD_AREA/build_data/pkg_image. Then insert
this script into the build process via a 'custom-script'.
Documentation on doing that is mentioned in the link above.
On 01/21/11 06:01 AM, Nirmal Agarwal wrote:
Hi all
I am trying to build my custom iso with the distro constructor.I
wanted to replace some of the packages in build with my custom
packages to test my fix.I was following document "Oracle� Solaris 11
Express Distribution Constructor Guide" which describes the same can
be done using
"Finalizer Scripts". But with the latest 157 build, in the template
manifest file I was not able to find finalizer section of the
manifest file.
Is it still supported ? Or is there any other way to achieve my goal ?
Thanks in advance
Nirmal Agarwal
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss