def METHOD_NAME(self):
    image_rootfs = self.d.getVar('IMAGE_ROOTFS')
    pkg_list = dict()
    if image_rootfs.find("core-image-sato-sdk") > 0:
        pkg_list[self.PKG_TYPE_MUST_INSTALL] = \
            "packagegroup-core-x11-sato-games packagegroup-base-extended " \
            "packagegroup-core-x11-sato packagegroup-core-x11-base " \
            "packagegroup-core-sdk packagegroup-core-tools-debug " \
            "packagegroup-core-boot packagegroup-core-tools-testapps " \
            "packagegroup-core-eclipse-debug packagegroup-core-qt-demoapps " \
            "apt packagegroup-core-tools-profile psplash " \
            "packagegroup-core-standalone-sdk-target " \
            "packagegroup-core-ssh-openssh dpkg kernel-dev"
        pkg_list[self.PKG_TYPE_LANGUAGE] = \
            "locale-base-en-us locale-base-en-gb"
    elif image_rootfs.find("core-image-sato") > 0:
        pkg_list[self.PKG_TYPE_MUST_INSTALL] = \
            "packagegroup-core-ssh-dropbear packagegroup-core-x11-sato-games " \
            "packagegroup-core-x11-base psplash apt dpkg packagegroup-base-extended " \
            "packagegroup-core-x11-sato packagegroup-core-boot"
        pkg_list['lgp'] = \
            "locale-base-en-us locale-base-en-gb"
    elif image_rootfs.find("core-image-minimal") > 0:
        pkg_list[self.PKG_TYPE_MUST_INSTALL] = "packagegroup-core-boot"
    with open(self.initial_manifest, "w+") as manifest:
        manifest.write(self.initial_manifest_file_header)
        for pkg_type in pkg_list:
            for pkg in pkg_list[pkg_type].split():
                manifest.write("%s,%s\n" % (pkg_type, pkg))