summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-11 09:54:48 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-11 09:54:48 +0000
commitdbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e (patch)
treedb8cc99cd66a69955d844f25183ff0979db81630
parent197206cf5ac059f20b359592a0d983b85a020a56 (diff)
downloaddraklive-dbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e.tar
draklive-dbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e.tar.gz
draklive-dbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e.tar.bz2
draklive-dbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e.tar.xz
draklive-dbcbb35eef8c0d4c78a4b1463b0ea0c22e47447e.zip
allow to format disk devices
-rwxr-xr-xdraklive5
-rw-r--r--lib/MDV/Draklive/Storage.pm1
2 files changed, 6 insertions, 0 deletions
diff --git a/draklive b/draklive
index 53ab771..d318931 100755
--- a/draklive
+++ b/draklive
@@ -780,6 +780,11 @@ sub format_master {
}
}
+sub format_disk {
+ my ($live, $opts) = @_;
+ format_master($live, $live->{media}, $opts);
+}
+
sub create_disk_master {
my ($live, $opts) = @_;
diff --git a/lib/MDV/Draklive/Storage.pm b/lib/MDV/Draklive/Storage.pm
index 220d71c..637508c 100644
--- a/lib/MDV/Draklive/Storage.pm
+++ b/lib/MDV/Draklive/Storage.pm
@@ -34,6 +34,7 @@ our %storage_types = (
harddisk => {
fs => 'ext3',
create => \&main::create_disk_master,
+ format => \&main::format_disk,
record => \&main::record_harddisk_master,
image => \&main::create_disk_image,
},