Use mkpart instead of mkpartfs , as we don't want to create a filesystem

This commit is contained in:
Jamie Cameron
2014-02-13 13:33:00 -08:00
parent b773f56c32
commit 56a50c5ebc

View File

@@ -694,12 +694,12 @@ if ($has_parted) {
my $pe = $part > 4 ? "logical" : "primary";
my $cmd;
if ($type eq "raid") {
$cmd = "parted -s ".$disk." unit cyl mkpartfs ".$pe." ".
$cmd = "parted -s ".$disk." unit cyl mkpart ".$pe." ".
"ext2 ".($start-1)." ".$end;
$cmd .= " ; parted -s ".$disk." set $part raid on";
}
elsif ($type && $type ne 'ext2') {
$cmd = "parted -s ".$disk." unit cyl mkpartfs ".$pe." ".
$cmd = "parted -s ".$disk." unit cyl mkpart ".$pe." ".
$type." ".($start-1)." ".$end;
}
else {