I found an interesting problem with manifests on Nevada. This problem doesn't occur on Solaris 10. During a pkgadd, a manifest is added to the system. During the pkgrm the manifest's xml file is deleted from the repository and /etc/inetd.conf file. Everything works fine when added for the first time. So far so good.
However, when the same pkg is added back, the modifications required for /etc/inted.conf is done successfully and the xml file gets added to the repository. But the service doesn't get enabled because it was not imported. Apparently inetconv -i /etc/inetd.conf is not sufficient.
The workaround is to execute svccfg import <manifest's xml file>. Wondering what option should be used to ensure that the manifest gets enabled the second time! Remember, the problem occurs if the same pkg is removed and then added back! The only command that I could find was inetconv -fi /etc/inetd.conf which unfortunately doesn't solve the problem!
Any suggestions?