summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Config.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-11 13:09:18 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-11 13:09:18 +0000
commit836fcd32803f03499522dbd332f0b7047b79287d (patch)
tree09634a5da31c1cceb17b7f77c87aec74b849621e /lib/MDV/Draklive/Config.pm
parente31d6a0a327bb9d63e912df578afa2da96898063 (diff)
downloaddrakiso-836fcd32803f03499522dbd332f0b7047b79287d.tar
drakiso-836fcd32803f03499522dbd332f0b7047b79287d.tar.gz
drakiso-836fcd32803f03499522dbd332f0b7047b79287d.tar.bz2
drakiso-836fcd32803f03499522dbd332f0b7047b79287d.tar.xz
drakiso-836fcd32803f03499522dbd332f0b7047b79287d.zip
initialize default partitions earlier (required when building boot files)
Diffstat (limited to 'lib/MDV/Draklive/Config.pm')
-rw-r--r--lib/MDV/Draklive/Config.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/MDV/Draklive/Config.pm b/lib/MDV/Draklive/Config.pm
index 7b83f0f..99ca16a 100644
--- a/lib/MDV/Draklive/Config.pm
+++ b/lib/MDV/Draklive/Config.pm
@@ -77,13 +77,11 @@ sub complete_config {
$live->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`);
$live->{media}{title} ||= "live";
- foreach (
+ $_ = MDV::Draklive::Media::new($_) foreach (
$live->{media},
($live->{replicator} ? $live->{replicator}{media} : ()),
($live->{oem_rescue} ? $live->{oem_rescue}{media} : ()),
- ) {
- bless $_, 'MDV::Draklive::Media';
- }
+ );
mkdir_p($live->get_builddir);
mkdir_p($live->get_system_root);