summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-generate-config.pl
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-08-29 08:40:23 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-08-29 12:19:13 -0700
commit44281788475016ddbf48539814b6870337e6ef54 (patch)
tree8abf3d012ea8ed53d5e7af9fef6936db228d5c79 /nixos/modules/installer/tools/nixos-generate-config.pl
parent8eb3de7c86355c2061608e9a0f64150fbdbcc7ec (diff)
downloadnixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar.gz
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar.bz2
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar.lz
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar.xz
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.tar.zst
nixpkgs-44281788475016ddbf48539814b6870337e6ef54.zip
nixos/generate-config: Fix indentation
Diffstat (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl')
-rw-r--r--nixos/modules/installer/tools/nixos-generate-config.pl26
1 files changed, 13 insertions, 13 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl
index cabdb09ec9c..73dd87cef5c 100644
--- a/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -344,19 +344,19 @@ EOF
         }
     }
 
-	# Is this a btrfs filesystem?
-	if ($fsType eq "btrfs") {
-		my ($status, @info) = runCommand("btrfs subvol show $rootDir$mountPoint");
-		if ($status != 0) {
-			die "Failed to retreive subvolume info for $mountPoint";
-		}
-		my @subvols = join("", @info) =~ m/Name:[ \t\n]*([^ \t\n]*)/;
-		if ($#subvols > 0) {
-			die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
-		} elsif ($#subvols == 0) {
-			push @extraOptions, "subvol=$subvols[0]";
-		}
-	}
+    # Is this a btrfs filesystem?
+    if ($fsType eq "btrfs") {
+        my ($status, @info) = runCommand("btrfs subvol show $rootDir$mountPoint");
+        if ($status != 0) {
+            die "Failed to retreive subvolume info for $mountPoint";
+        }
+        my @subvols = join("", @info) =~ m/Name:[ \t\n]*([^ \t\n]*)/;
+        if ($#subvols > 0) {
+            die "Btrfs subvol name for $mountPoint listed multiple times in mount\n"
+        } elsif ($#subvols == 0) {
+            push @extraOptions, "subvol=$subvols[0]";
+        }
+    }
 
     # Emit the filesystem.
     $fileSystems .= <<EOF;