I'm creating an installation profile. Currently, `hook_install()` contains only this:

    /**
     * Implements hook_install().
     */
    function myprofile_install() {
      \Drupal::service('config.factory')->getEditable('system.site')->set('name', 'My Site')->save();
    }

Still, after installation is completed (using Drush) the site name is always "Drupal".

The code works if I paste it into Devel's `Execute PHP` after the site is installed.

Another option I tried is to override `system.site.yml` within my profile, which won't load because I wrote `uuid: ''` (I don't know how to leave the already-generated UUID).

How can I set the site name during installation in my custom profile?