Hi Rajen / All,
I'm looking into config-setup as well and wanted to revive this thread. A few questions:
From earlier in the thread:
Modify "files/build_templates/sonic_debian_extension.j2" to copy the my-hook-script to $FILESYSTEM_ROOT/etc/config-setup/factory-default-hooks.d/ and the template file to $FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES
* Why doesn't community code have this logic? Why does one need to add it in their private repo to get config-setup infra to work?
From what I understand, the two options for config-setup infra:
1) add scripts in sonic-buildimage/files/image_config/config-setup/
2) add scripts in other directory & modify files/build_templates/organization_extensions.sh
Neither is upstream-able to SONiC community GitHub since they are vendor or platform specific scripts in central file locations. Is my understanding right? If so, I would agree with Zhenghui that platform/vendor directory may be a better spot to put them.
Thanks - Jeff