Marcus,
I'm unsure as to the reasoning behind the XML comments issue, but for a
comprehensive overview of what changed with DC, including how to add
your own custom scripts (written in any language), please see this link:
http://hub.opensolaris.org/bin/view/Project+caiman/Distribution+Constructor+Changes
-Drew
On 1/28/11 8:49 AM, Marcus Heine wrote:
Hello,
I see with b156/157 the distribution constructor xml config file
format has completely
changed, as well as the location of the step/checkpoint scripts.
For my (custom) distribution I had so far added a couple of my own
steps and
and they are written in ksh and perl.
The new concept seems to require all code for the steps to reside
somewhere
south of $PYTHONLIB and be written in python, e.g. as specified in
mod_path
from dc_livcd.xml:
<checkpoint name="set-ips-attributes"
desc="Set post-install IPS attributes"
*mod_path="solaris_install/transfer/ips"*
checkpoint_class="TransferIPS"/>
Is there indeed no way anymore to have custom checkpoint scripts that
are not
written in python? If somebody could confirm that would be great.
On another note, I also found that the new xml config file format does
not accept xml
comments when inserted inside the <software_data ....> xml tags. The
related
python scripts that process them, will just barf when they process
them, even though
this is obviously valid xml.
Here is an example of a modified dc_slimcd.xml section , that makes
this easily
reproducable
...
<software_data action="install" type="IPS">
<name>pkg:/entire</name>
<name>pkg:/slim_install</name>
<name>pkg:/system/install/gui-install</name>
<name>pkg:/system/install/media/internal</name>
<!-- test comment -->
<name>pkg:/developer/dtrace</name>
</software_data>
...
# distro_const build ./dc_livecd.marcus.xml
...
16:43:08 Build datasets successfully setup
16:43:08 Simple log: /rpool/dc_b157/logs/simple-log.2011-01-27.16:43
16:43:08 Detail Log: /rpool/dc_b157/logs/detail-log.2011-01-27.16:43
16:43:10 Creating IPS image
16:43:38 Installing packages
16:43:44 Error occurred during execution of 'transfer-ips-install'
checkpoint.
16:43:44 'transfer-ips-install' checkpoint failed
16:43:44 The following pattern(s) did not match any packages in the
current catalog.
Try relaxing the pattern, refreshing and/or examining the catalogs:
***test comment*
<name>pkg:/entire</name>
<name>pkg:/slim_install</name>
<name>pkg:/system/install/gui-install</name>
<name>pkg:/system/install/media/internal</name>
<name>pkg:/developer/dtrace</name>
Thanks in advance,
--Marcus
_______________________________________________
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