diff options
author | andr1an <halavshik@gmail.com> | 2022-02-20 12:08:35 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-03-18 23:16:06 +0200 |
commit | 00487b5a87cff8c0970a64a040377949ffa11b1a (patch) | |
tree | a86933e207988784ef3a03a0ff41a5ab7ff1e226 /nixos/modules/installer | |
parent | 08b16191a93d10bdbec0e56e4a90f709e653d5a5 (diff) |
nixos/nixos-generate-config: resolve abspath to root
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 57aef50a0f6ba..1a9b1d061cf15 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -52,6 +52,7 @@ for (my $n = 0; $n < scalar @ARGV; $n++) { $rootDir = $ARGV[$n]; die "$0: ‘--root’ requires an argument\n" unless defined $rootDir; $rootDir =~ s/\/*$//; # remove trailing slashes + $rootDir = File::Spec->rel2abs($rootDir); # resolve absolute path } elsif ($arg eq "--force") { $force = 1; |