Xun Ni:

You did not do this correctly.

I will suggest you use the following repo instead of using a custom script to replace the scu package:

For your local repo where you had your package, you need to list that first before the solaris repo:

e.g:

When I test my install nightly repo, this is what I did:

<source>
<publisher name="install-nightly">
<origin name="file:/export/home/ding/sunstudio12u1patch/slim_source/packages/i386/nightly-nd/repo.redist"/>
</publisher>
<publisher name="solaris">
<origin name="http://ipkg.us.oracle.com/solaris11/dev"/>

On 05/15/11 11:32 PM, xun.ni wrote:
  Hi, Dave:

I need to replace my package scu(driver/storage/scu) with the lastest using the DC, and currently my dc_ai_x86.xml and the custom script is in the attachment, The key error point is "Unable to install pkg://solaris/scu", my step is that i create a local IPS server with "/usr/lib/pkg.depotd -d /root/nightly/repo.redist/ -p 10000" and it contain the lastest package, and then i run "/usr/bin/distro_const build -v /root/dc_ai_x86.xml". I set a custom script to replace the package with my own but it failed, can you help me to figure out why it fail?

  The output error is

2011-05-16 13:17:29,012 InstallationLogger.custom-script INFO === Executing Custom Script Checkpoint === 2011-05-16 13:17:29,012 InstallationLogger.custom-script INFO Custom Script provided is: '/export/home/scu_script.sh {PKG_IMAGE_PATH} scu' 2011-05-16 13:17:29,012 InstallationLogger.custom-script INFO Custom Script to run is: '/export/home/scu_script.sh /export/home/dc/ai/build_data/pkg_image scu' 2011-05-16 13:17:29,013 InstallationLogger.custom-script DEBUG Executing: /export/home/scu_script.sh /export/home/dc/ai/build_data/pkg_image scu 2011-05-16 13:17:29,712 InstallationLogger.custom-script DEBUG /usr/bin/pkg -R /export/home/dc/ai/build_data/pkg_image uninstall scu 2011-05-16 13:17:30,161 InstallationLogger.custom-script ERROR pkg: The image cannot be modified as it is currently in use by another package client: pkg on glasspaper.cn, pid 1257. 2011-05-16 13:17:30,202 InstallationLogger.custom-script ERROR /export/home/scu_script.sh: Unable to install pkg://solaris/scu 2011-05-16 13:17:30,254 InstallationLogger ERROR Error occurred during execution of 'custom-script' checkpoint.


Thanks,
Xun


_______________________________________________
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

Reply via email to