I checked the log files and I don't see duplicate data. I yanked the logger=self.logger argument and got the same level of output so I'll go with that.

Thanks, Keith!

-Drew

On 4/14/11 1:52 PM, Keith Mitchell wrote:
Seems like 91-97 will generate duplicate output, since you're using the inherent logging of solaris_install.Popen.

Other than that, looks fine.

On 04/14/11 12:12 PM, Drew Fisher wrote:
Good afternoon!

Could I please get a code review for the following bug:

http://monaco.us.oracle.com/detail.jsf?cr=7036694

The webrev is here:

http://cr.opensolaris.org/~drewfish/cr_7036694/

The crux of the problem is the custom_script checkpoint has no way of translating the new {PKG_IMAGE_PATH} and {BOOT_ARCHIVE} replacement strings to their respective directories. This fix allows users to specify those replacement strings in the checkpoint args:

<checkpoint name="custom-script-one"
          desc="custom script one"
mod_path="solaris_install/distro_const/checkpoints/custom_script"
          checkpoint_class="CustomScript">
<args>/usr/bin/cp /etc/system {PKG_IMAGE_PATH}/myfile</args>
</checkpoint>

Also, the original replacement still works, so people can continue using:

<checkpoint name="custom-script-two"
          desc="custom script two"
mod_path="solaris_install/distro_const/checkpoints/custom_script"
          checkpoint_class="CustomScript">
<args>/usr/bin/cp /etc/system %{//[@solaris_install.target.logical.Filesystem#1].mountpoint}/build_data/boot_archive/SYSTEM</args>
</checkpoint>


I prefer the first method.  :)

In addition to updating the checkpoint for support of these replacement strings, I moved to using solaris_install.Popen, and cleaned up some extra code that served no purpose in the original.

Thanks!

-Drew
_______________________________________________
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