https://www.drupal.org/node/2897299 states that there are currently 2 supported solutions to install configuration for an installation profile. First, using a settings.php file
OR second having a config/sync
in a custom installation profile and changing your core.extensions.yml
file.
The installation stops at the Installation Configuration step with the error:
The configuration synchronization failed validation.
This import is empty and if applied would delete all of your configuration, so has been rejected.
The directory:protected
gets set in the config module with the default random sync location seeming to ignore config/sync
location of the installation profile. It (config module) seems to expect a value in the sync key of $config_directories
. This seems to imply that an entry in $settings.php
is required which makes the second solution depend on the first one, which contradicts the described solution.
Reference and steps to reproduce can be found in: https://www.drupal.org/project/drupal/issues/2788777#comment-12931579.