mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Use mkpart instead of mkpartfs , as we don't want to create a filesystem
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user