From d729cc8a53915847a586c367bc48e7113f82412d Mon Sep 17 00:00:00 2001 From: Janne Heß Date: Sat, 29 Jan 2022 14:06:25 +0100 Subject: nixos/switch-to-configuration: Skip [Install] section --- nixos/modules/system/activation/switch-to-configuration.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos/modules/system/activation') 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 -- cgit 1.4.1