diff --git a/core/includes/install.inc b/core/includes/install.inc index fefa931..f567887 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -648,8 +648,9 @@ function drupal_install_system($install_state) { ->set('enabled.system', 0) ->save(); - // Update the module list to include it. + // Update the module list to include it. Reboot the kernel too. \Drupal::moduleHandler()->setModuleList(array('system' => $system_path . '/system.module')); + $kernel->updateModules(array('system' => $system_path . '/system.module')); \Drupal::service('config.installer')->installDefaultConfig('module', 'system');