diff options
-rwxr-xr-x | draklive | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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? |