nixos/switch-to-configuration: Skip [Install] section

This commit is contained in:
Janne Heß
2022-02-09 14:31:44 +01:00
parent 6d3dd0325d
commit d729cc8a53
@@ -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