git.iko.soy/typeable/nixpkgs
on master help sign in
nixos-install: Don't barf if btrfs is missing
commitfd06533def4948b3f42ceded8df6e15892f82b78 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateMon 13 Jul 2015, 17:55 (11 years ago) parentbaad6a6
1 file changed+3−3
nixos/modules/installer/tools/nixos-generate-config.pl+3−3
nixos/modules/installer/tools/nixos-generate-config.pl+3−3
@@ -311,9 +311,9 @@ foreach my $fs (read_file("/proc/self/mountinfo")) {
311311
312312 # Maybe this is a bind-mount of a filesystem we saw earlier?
313313 if (defined $fsByDev{$fields[2]}) {
314− # Make sure this isn't a btrfs subvolume
315− my ($status, @msg) = runCommand("btrfs subvol show $rootDir$mountPoint");
316− if (join("", @msg) =~ /ERROR:/) {
314+ # Make sure this isn't a btrfs subvolume.
315+ my $msg = `btrfs subvol show $rootDir$mountPoint`;
316+ if ($? != 0 || $msg =~ /ERROR:/s) {
317317 my $path = $fields[3]; $path = "" if $path eq "/";
318318 my $base = $fsByDev{$fields[2]};
319319 $base = "" if $base eq "/";