Quoth Sebastien Roy on Wed, Oct 10, 2007 at 06:48:02 -0400: > Cathy Zhou wrote: > > 1. Instead of write those "dladm" commands to /var/svc/profile/upgrade, we > > write it to another script, and run that script at the very beginning of > > network/physical service.
That should work, I think. > > 2. Change the dependency so that instead of system/manifest-import > > depending > > on network/physical, we make network/physical depends on > > system/manifest-import. > > Another potential option: > > 3. Create a dlmgmt-upgrade service which disables itself the first time > it is run. This service would read the dladm command from the custom > script described in 1. The inetd-upgrade service is similar to this. I doubt this will work since presumably dlmgmt-upgrade would be installed by droping a manifest into /var/svc/manifest. In that case the service won't be created until manifest-import anyway. You could pre-import dlmgmt-upgrade's manifest into the target repository with SVCCFG_REPOSITORY. That's private and in theory can break at any time, though. > > Option 2 requires to break the current dependency between manifest-import > > and network/physical. I don't know it is possible. Today, > > system/manifest-import indirectly depends on network/iscsi_initiator and > > system/identity:node, which both depends on network/physical. > > I don't think option 2 is feasible. I agree. David
