diff options
| author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-25 17:42:09 +0200 |
|---|---|---|
| committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-06 12:58:10 +0200 |
| commit | 4df1e5b0e4c089c226d3a2cfe1bc99e8a13d0da1 (patch) | |
| tree | 86890e2eca57a81dc684128d1db2429d6d254102 | |
| parent | typo (diff) | |
| download | nixpkgs-4df1e5b0e4c089c226d3a2cfe1bc99e8a13d0da1.tar.gz | |
switch-to-configuration: Use systemctl's --no-legend flag
(cherry picked from commit 37e6e08cdee082d9f60ab2900c960f2f594933a0)
| -rw-r--r-- | 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 8d9fa94c9e77..b4f31d9caa0a 100644 --- a/nixos/modules/system/activation/switch-to-configuration.pl +++ b/nixos/modules/system/activation/switch-to-configuration.pl @@ -62,7 +62,7 @@ $SIG{PIPE} = "IGNORE"; sub getActiveUnits { # FIXME: use D-Bus or whatever to query this, since parsing the # output of list-units is likely to break. - my $lines = `@systemd@/bin/systemctl list-units --full`; + my $lines = `LANG= @systemd@/bin/systemctl list-units --full --no-legend`; my $res = {}; foreach my $line (split '\n', $lines) { chomp $line; |
