summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive b/draklive
index f30772f..53ab771 100755
--- a/draklive
+++ b/draklive
@@ -751,6 +751,14 @@ sub allocate_master {
mkdir_p(dirname($opts->{device}));
MDV::Draklive::Utils::device_allocate_file($opts->{device}, $hd->{totalsectors} * $common::SECTORSIZE);
+ format_master($live, $media, $opts);
+}
+
+sub format_master {
+ my ($live, $media, $opts) = @_;
+
+ my $hd = get_hd_from_layout($media, $opts->{device});
+
partition_table::raw::zero_MBR($hd);
#- FIXME: maybe use fsedit::allocatePartitions to factorize even more?