summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-28 20:39:21 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-28 20:39:21 +0000
commitd3af2ecf27b7d2760d558a3b65b3c2303e9ad48a (patch)
tree42fcebf425485ad2e7f7f342529dbc41a0358d05
parent1c72da4b765932ad694ec1a3865eff3620cafb62 (diff)
downloaddrakiso-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar
drakiso-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.gz
drakiso-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.bz2
drakiso-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.xz
drakiso-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.zip
inline code
-rwxr-xr-xdraklive14
1 files changed, 5 insertions, 9 deletions
diff --git a/draklive b/draklive
index 19c6fa6..ddceb98 100755
--- a/draklive
+++ b/draklive
@@ -385,9 +385,7 @@ sub need_media_specific_boot {
sub create_media_initrd {
my ($live) = @_;
- foreach ($live->{media}) {
- create_initrd_for_media($live, $_);
- }
+ create_initrd_for_media($live, $live->{media});
cp_f($live->get_builddir . $live->{prefix}{build}{boot} . get_initrd_path($live->{media}),
$live->{copy_initrd}) if $live->{copy_initrd};
}
@@ -1141,12 +1139,10 @@ $live->{media}{title} <kernel options>
));
- foreach my $media ($live->{media}) {
- foreach my $boot ('', @{$media->{extra_boot}}) {
- my $opts = { boot => $boot };
- output($live->get_builddir . $live->{prefix}{build}{boot} . get_syslinux_path($media, $opts),
- build_syslinux_cfg($live, $media, $opts));
- }
+ foreach my $boot ('', @{$live->{media}{extra_boot}}) {
+ my $opts = { boot => $boot };
+ output($live->get_builddir . $live->{prefix}{build}{boot} . get_syslinux_path($live->{media}, $opts),
+ build_syslinux_cfg($live, $live->{media}, $opts));
}
}