diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-11 09:53:45 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-11 09:53:45 +0000 |
commit | 197206cf5ac059f20b359592a0d983b85a020a56 (patch) | |
tree | 4d1acd3743165dde71c633a4e15e1f79aa7f9f02 | |
parent | 90361255faffbf53f6f8ff67383ab47a21c17b4f (diff) | |
download | draklive-197206cf5ac059f20b359592a0d983b85a020a56.tar draklive-197206cf5ac059f20b359592a0d983b85a020a56.tar.gz draklive-197206cf5ac059f20b359592a0d983b85a020a56.tar.bz2 draklive-197206cf5ac059f20b359592a0d983b85a020a56.tar.xz draklive-197206cf5ac059f20b359592a0d983b85a020a56.zip |
extract format_master
-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? |