From 916a932f2a882245da60cd7682b7e981f1bc0499 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 13 Oct 2009 13:14:45 +0000 Subject: extract create_syslinux_msg_files --- draklive | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'draklive') diff --git a/draklive b/draklive index 2df2d28..929d164 100755 --- a/draklive +++ b/draklive @@ -539,9 +539,8 @@ sub remove_unneeded_bootlogo_locales { return @kept_locales; } -sub create_media_bootloader { +sub create_syslinux_msg_files { my ($live) = @_; - cp_f($live->get_system_root . '/boot/vmlinuz-' . $live->find_kernel, $live->get_builddir . $live->{prefix}{build}{boot} . '/vmlinuz'); my $syslinux_dir = $live->get_builddir . $live->{prefix}{build}{boot} . '/syslinux'; mkdir_p($syslinux_dir); @@ -575,7 +574,12 @@ The command line can be used to specify kernel options. $live->{media}{title} )); +} +sub create_media_bootloader { + my ($live) = @_; + cp_f($live->get_system_root . '/boot/vmlinuz-' . $live->find_kernel, $live->get_builddir . $live->{prefix}{build}{boot} . '/vmlinuz'); + create_syslinux_msg_files($live); 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), -- cgit v1.2.1