On Fri, 28 Jan 2011, Marcus Heine wrote:

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.

That's not correct. The reimplementation of DC in b156 changed
the internal implementation to be a purely python one.

However, your custom scripts can be in any language just as they
were previously. Take a look at the link that Drew provided, that
should give you an idea on how you would make your existing custom
scripts work with the new DC.

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>

Is 'pkg:/developer/dtrace' a valid package uri? You'd want to
run 'pkg info developer/dtrace' to see if you're specifying
the correct uri, I suspect it's not correct.

Alok
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to