diff options
author | Stig <stig@stig.io> | 2022-08-21 17:31:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-21 17:31:52 +0200 |
commit | 8c4a3b279be85bd863138e69f09ee88d3f969b5b (patch) | |
tree | 0625394838452308bfbd7df8205e49a198fd2292 /nixos/modules/system | |
parent | 262f2f58b940e4a21858da04d46cffa919597a8e (diff) | |
parent | 7874b995fba14ba6111e10e2bb7f89224ddaa41b (diff) | |
download | nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar.gz nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar.bz2 nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar.lz nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar.xz nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.tar.zst nixlib-8c4a3b279be85bd863138e69f09ee88d3f969b5b.zip |
Merge pull request #186503 from Weathercold/patch-1
nixos/switch-to-configuration: fix units starting with dash not being able to reload
Diffstat (limited to 'nixos/modules/system')
-rwxr-xr-x | nixos/modules/system/activation/switch-to-configuration.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl index f39549db883d..9a4c635402d1 100755 --- a/nixos/modules/system/activation/switch-to-configuration.pl +++ b/nixos/modules/system/activation/switch-to-configuration.pl @@ -167,7 +167,7 @@ sub get_active_units { # Takes the name of the unit as an argument and returns a bool whether the unit is active or not. sub unit_is_active { my ($unit_name) = @_; - my $units = busctl_call_systemd1_mgr("ListUnitsByNames", "as", 1, $unit_name)->{data}->[0]; + my $units = busctl_call_systemd1_mgr("ListUnitsByNames", "as", 1, , "--", $unit_name)->{data}->[0]; if (scalar(@{$units}) == 0) { return 0; } |