FM_FMRI_PKG_INST
e |= nvlist_add_string(f, FM_FMRI_PKG_INST, pkgname);
err = nvlist_lookup_string(nvl, FM_FMRI_PKG_INST, &pkgname);