Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 12, 2019
1 parent 2542653 commit 8ff90c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/setup-storage/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -367,22 +367,22 @@ sub build_btrfs_commands {
$pre_req = "exist_" . $devs[0];
}
# creates the BTRFS volume/RAID
if ($raidlevel eq 'single') {
if ($raidlevel eq 'single') {
if (exists $mkfs_done{join(" ", @devs)}) {
&FAI::push_command("true",
"$pre_req",
"btrfs_built_raid_$id");
"$pre_req",
"btrfs_built_raid_$id");
} else {
print "Adding mkfs command for '", join(", ", @devs), "'.\n";
&FAI::push_command("mkfs.btrfs -d single $createopts ".join(" ",@devs),
"$pre_req",
"btrfs_built_raid_$id");
$mkfs_done{join(" ", @devs)} = '1';
"$pre_req",
"btrfs_built_raid_$id");
$mkfs_done{join(" ", @devs)} = '1';
}
} else {
&FAI::push_command("mkfs.btrfs -d raid$raidlevel $createopts ".join(" ",@devs),
"$pre_req",
"btrfs_built_raid_$id");
"$pre_req",
"btrfs_built_raid_$id");
}

# initial mount, required to create the initial subvolume
Expand Down

0 comments on commit 8ff90c7

Please sign in to comment.