diff --git a/core/includes/common.inc b/core/includes/common.inc
index aa23a96..64ceed6 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -247,7 +247,7 @@ function drupal_get_profile() {
     $profile = $install_state['parameters']['profile'];
   }
   else {
-    $profile = variable_get('install_profile', 'standard');
+    $profile = config('system.site')->get('install_profile');
   }
 
   return $profile;
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 3968682..f4d615a 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1680,8 +1680,6 @@ function install_import_translations_remaining(&$install_state) {
  */
 function install_finished(&$install_state) {
   $profile = drupal_get_profile();
-  // Remember the profile which was used.
-  variable_set('install_profile', $profile);
 
   // Installation profiles are always loaded last.
   module_set_weight($profile, 1000);
diff --git a/core/modules/system/config/system.site.yml b/core/modules/system/config/system.site.yml
index 010dedf..fc79514 100644
--- a/core/modules/system/config/system.site.yml
+++ b/core/modules/system/config/system.site.yml
@@ -5,3 +5,4 @@ page:
   403: ''
   404: ''
   front: user
+install_profile: standard
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index b885a05..9a2a453 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -2215,6 +2215,17 @@ function system_update_8033() {
 }
 
 /**
+ * Moves install_profile from variable to config.
+ *
+ * @ingroup config_upgrade
+ */
+function system_update_8033() {
+  update_variables_to_config('system.site', array(
+    'install_profile' => 'install_profile'
+  ));
+}
+
+/**
  * @} End of "defgroup updates-7.x-to-8.x".
  * The next series of updates should start at 9000.
  */
