summary refs log tree commit diff
path: root/nixos/modules/system/activation
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-01-29 14:06:25 +0100
committerJanne Heß <janne@hess.ooo>2022-02-09 14:31:44 +0100
commitd729cc8a53915847a586c367bc48e7113f82412d (patch)
tree4211b2cdfa330f453584d6879c7db4827fa573a4 /nixos/modules/system/activation
parent6d3dd0325de12d3897832e25c8b7ed5732e6b404 (diff)
downloadnixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar.gz
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar.bz2
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar.lz
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar.xz
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.tar.zst
nixpkgs-d729cc8a53915847a586c367bc48e7113f82412d.zip
nixos/switch-to-configuration: Skip [Install] section
Diffstat (limited to 'nixos/modules/system/activation')
-rw-r--r--nixos/modules/system/activation/switch-to-configuration.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl
index 1fe346114e4..d6f780f7b61 100644
--- a/nixos/modules/system/activation/switch-to-configuration.pl
+++ b/nixos/modules/system/activation/switch-to-configuration.pl
@@ -131,6 +131,10 @@ sub parseSystemdIni {
 
     # Copy over all sections
     foreach my $sectionName (keys %fileContents) {
+        if ($sectionName eq "Install") {
+            # Skip the [Install] section because it has no relevant keys for us
+            next;
+        }
         # Copy over all keys
         foreach my $iniKey (keys %{$fileContents{$sectionName}}) {
             # Ensure the value is an array so it's easier to work with