From df535a121225f56f65396b80150e7622fea6b9ae Mon Sep 17 00:00:00 2001 From: Mageia SVN-Git Migration Date: Sat, 29 Oct 2011 13:51:03 +0100 Subject: Synthesized commit during git-svn import combining previous Mandriva history with Magiea. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r2105 | ennael | 2011-10-29 13:51:03 +0100 (Sat, 29 Oct 2011) | 2 lines import bcd files for trunk (Mageia 2 alpha 1) ------------------------------------------------------------------------ --- BCD/Isolinux.pm | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'BCD/Isolinux.pm') diff --git a/BCD/Isolinux.pm b/BCD/Isolinux.pm index 6b0d8df..0f17dd1 100644 --- a/BCD/Isolinux.pm +++ b/BCD/Isolinux.pm @@ -20,30 +20,6 @@ my $build_isolinux_dir = "$builddir/isolinux"; sub switch_theme { my $theme = $isoconf->{theme}{bootsplash}; print_color("$LOG switch to theme $theme", $color); - -d "$isoconf->{theme}{bootsplash_path}/themes/$theme" or die "$LOG cant find the gfxboot theme: $isoconf->{theme}{bootsplash_path}/themes/$theme"; - opendir my $DIR, $build_isolinux_dir or die "$LOG FATAL switch_theme: unable to open $build_isolinux_dir\n"; - foreach my $f (readdir $DIR) { - $f =~ /^\.{1,2}$/ and next; - -d "$build_isolinux_dir/$f" or next; - opendir my $ALT, "$build_isolinux_dir/$f" or die "LOG FATAL switch_theme: unable to open $dir/$f\n"; - foreach my $all (readdir $ALT) { - $all =~ /all.rdz/ or next; - my $initrd = "$build_isolinux_dir/$f/$all"; - my $binary = "/usr/share/bootsplash/scripts/make-boot-splash-raw"; - -x $binary or die "$LOG you need $binary which is available in bootsplash >= 3.2.3\n"; - my $cmd; - if ($isoconf->{based_on} gt "2009.1" && $isoconf->{based_on} ne "mes5") { - $cmd = "$binary $initrd $theme"; - } else { - # old script use a resolution parameter - $cmd = "$binary $initrd 800x600 $theme"; - } - print_color("$LOG using $f", $color); - system($cmd) == 0 or die "$LOG FATAL switch_theme: config file for $theme may not exist\n"; - } - closedir $ALT; - } - closedir $DIR; # syslinux my $lilo_sys = "$isoconf->{theme}{bootsplash_path}/themes/$theme/lilo/syslinux"; -f $lilo_sys and system("cp -vf $lilo_sys", "$build_isolinux_dir/boot.msg"); -- cgit v1.2.1