aboutsummaryrefslogtreecommitdiffstats
path: root/BCD
diff options
context:
space:
mode:
Diffstat (limited to 'BCD')
-rw-r--r--BCD/Genisoimage.pm31
-rw-r--r--BCD/Media.pm4
2 files changed, 22 insertions, 13 deletions
diff --git a/BCD/Genisoimage.pm b/BCD/Genisoimage.pm
index 197d201..f410e2d 100644
--- a/BCD/Genisoimage.pm
+++ b/BCD/Genisoimage.pm
@@ -83,19 +83,28 @@ sub create_idx {
sub create_iso {
# build the ISO with all args
+ # use -eltorito-alt-boot -b isolinux/efiboot.img -no-emul-boot for EFI
print_color("$LOG Building the ISO", $color);
+
+ my $boot ="";
+ if ($nameid eq "Mageia" && $arch eq "x86_64") {
+ $boot = "-boot-info-table -eltorito-alt-boot -b isolinux/efiboot.img -no-emul-boot";
+ } else {
+ $boot = "-boot-info-table";
+ }
+
my $cmd = "genisoimage $isoconf->{iso}{genisoimage}{options} \\
--A '$isoconf->{iso}{header}{applicationid}' \\
--publisher '$isoconf->{iso}{header}{publisherid}' \\
--sysid '$isoconf->{iso}{header}{systemid}' \\
--p '$isoconf->{iso}{header}{datapreparer}' \\
--volset '$isoconf->{iso}{header}{volumesetid}' \\
--V '$isoconf->{iso}{header}{volumeid}' \\
--o '$isodir/$isoname.iso' \\
--b isolinux/isolinux.bin \\
--boot-info-table \\
-$builddir/../
-";
+ -A '$isoconf->{iso}{header}{applicationid}' \\
+ -publisher '$isoconf->{iso}{header}{publisherid}' \\
+ -sysid '$isoconf->{iso}{header}{systemid}' \\
+ -p '$isoconf->{iso}{header}{datapreparer}' \\
+ -volset '$isoconf->{iso}{header}{volumesetid}' \\
+ -V '$isoconf->{iso}{header}{volumeid}' \\
+ -o '$isodir/$isoname.iso' \\
+ -b isolinux/isolinux.bin \\
+ $boot \\
+ $builddir/../
+ ";
#-quiet \\
print_color("\n------------\n $cmd", $color);
system($cmd);
diff --git a/BCD/Media.pm b/BCD/Media.pm
index dfbc5f1..c39652b 100644
--- a/BCD/Media.pm
+++ b/BCD/Media.pm
@@ -92,8 +92,8 @@ sub use_gendistrib {
system("rm -vf $builddir/media/$destmedia/media_info/MD5SUM");
}
undef $destmedia;
- print_color("$LOG gendistrib --mediacfg $builddir/$isoconf->{iso}{mediacfg} $builddir", $color);
- my $cmd = "gendistrib --mediacfg $builddir/$isoconf->{iso}{mediacfg} $builddir";
+ print_color("$LOG gendistrib --nobadrpm --mediacfg $builddir/$isoconf->{iso}{mediacfg} $builddir", $color);
+ my $cmd = "gendistrib --nobadrpm --mediacfg $builddir/$isoconf->{iso}{mediacfg} $builddir";
system($cmd) == 0 or die "$LOG system $cmd failed: $?\n";
if ($isoconf->{based_on} lt "2009.1" || $isoconf->{based_on} eq "mes5") {
foreach my $media (@{$isoconf->{media}{list}}) {