diff options
author | Mageia SVN-Git Migration <svn-git-migration@mageia.org> | 2011-10-29 13:51:03 +0100 |
---|---|---|
committer | Mageia SVN-Git Migration <svn-git-migration@mageia.org> | 2011-10-29 13:51:03 +0100 |
commit | df535a121225f56f65396b80150e7622fea6b9ae (patch) | |
tree | 0e456898ddddad7c0b26f8aab4b0ffba1d63b575 /BCD/Isolinux.pm | |
parent | e653ea2e7bba20f2891c6b91c96ecfd8b3925324 (diff) | |
download | bcd-df535a121225f56f65396b80150e7622fea6b9ae.tar bcd-df535a121225f56f65396b80150e7622fea6b9ae.tar.gz bcd-df535a121225f56f65396b80150e7622fea6b9ae.tar.bz2 bcd-df535a121225f56f65396b80150e7622fea6b9ae.tar.xz bcd-df535a121225f56f65396b80150e7622fea6b9ae.zip |
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)
------------------------------------------------------------------------
Diffstat (limited to 'BCD/Isolinux.pm')
-rw-r--r-- | BCD/Isolinux.pm | 24 |
1 files changed, 0 insertions, 24 deletions
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"); |