3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/system/activation
Janne Heß 3617ecb67f
nixos/switch-to-configuration: Fix backslashes in unit names
systemd needs this so special characters (like the ones in wireguard
units that appear because they are part of base64) can be escaped using
the \x syntax.

Root of the issue is that `glob()` handles the backslash internally
which is obviously not what we want here.

Also add a test case and fix some perlcritic issues in the subroutine.
2022-02-17 12:49:45 +01:00
..
activation-script.nix nixos/activation-script: ensure gcroots dir exists 2022-01-20 20:24:32 +00:00
no-clone.nix
switch-to-configuration.pl nixos/switch-to-configuration: Fix backslashes in unit names 2022-02-17 12:49:45 +01:00
top-level.nix nixos/switch-to-configuration: avoid Array::Compare dependency 2022-02-15 15:37:37 +01:00