From 7e338fd436f0d505efdd8c76289ef24271f01eb8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 14 Oct 2009 16:18:23 +0000 Subject: move down require --- lib/MDV/Draklive/Initrd.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/MDV') diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm index ff32e37..b2375b0 100644 --- a/lib/MDV/Draklive/Initrd.pm +++ b/lib/MDV/Draklive/Initrd.pm @@ -274,13 +274,13 @@ sub compress_initrd_tree { sub add_splash { my ($live, $initrd) = @_; if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') { - require bootloader; my $tmp_initrd = '/tmp/initrd.gz'; cp_f($initrd, $live->get_system_root . $tmp_initrd); { local $::prefix = $live->get_system_root; #- also calls switch-themes -u (through make-boot-splash) #- which will regenerate gfxboot current link + require bootloader; bootloader::add_boot_splash($tmp_initrd, $live->{system}{vga_mode}); } cp_f($live->get_system_root . $tmp_initrd, $initrd); -- cgit v1.2.1