On 08/22/11 12:03, Mark Haywood wrote:
On 08/22/11 15:04, Darren Reed wrote:
On 22/08/11 04:16 PM, Mark Haywood wrote:
Comment from the net-install service to which your profile is applying
its properties:

#
# The network/install service will configure interfaces using the
# property values supplied by the install profile. Once the configuration
# has been applied, the service will not apply another configuration
# unless an unconfiguration has been performed first.
#

The service maintains an SMF property, "config/applied" to track this.
If you don't want to "sysconfig unconfigure", then you'll have to reset
the "config/applied" property to "false". I suppose you could do that
manually or via the profile.

Is this the correct way to change "config/applied" to false?

<service_bundle type='profile' name='system configuration'>
<service name='network/install' version='1' type='service'>
<instance name='default' enabled='true'>
<property_group name='config'>
<propval name='applied' value='false'/>
</property_group>
</service>
</service_bundle>

I'm not sure if that would work or not. In particular, I thought that the
property group and property value types had to be specified. I assume that
you already have a profile which sets the network/install property values.
If so, then I would insert:

<property_group name='config' type='application' >
<propval name='applied' type='boolean' value='false' />
</property_group>

That is how it is defined in the service manifest itself and would, I
assume, work for the profile.

Or you could simply use svccfg to reset the property to false.

Types are inferred if they're set by the manifest already, either in the original property definition or by the template data. When possible, we don't like to force the user to supply redundant information.

liane
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org

Reply via email to