diff options
Diffstat (limited to 'draklive')
-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)); } } |