diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:39:21 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:39:21 +0000 |
commit | d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a (patch) | |
tree | 42fcebf425485ad2e7f7f342529dbc41a0358d05 | |
parent | 1c72da4b765932ad694ec1a3865eff3620cafb62 (diff) | |
download | draklive-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar draklive-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.gz draklive-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.bz2 draklive-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.tar.xz draklive-d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a.zip |
inline code
-rwxr-xr-x | draklive | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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)); } } |