How is the app/etc/config.php file generated on a Magento 2 installation?

See also: