summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2014-12-15 20:56:49 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2014-12-15 20:56:49 +0100
commitb5800676d5b869ba528066de8754aa9bc2d91ab3 (patch)
tree5dd3e496abd9fa7437b09126f4965ffa6b03de5f
parent0af1ae766a7ba378f6a6434602f1a7d87ef16f00 (diff)
downloaddrakx-b5800676d5b869ba528066de8754aa9bc2d91ab3.tar
drakx-b5800676d5b869ba528066de8754aa9bc2d91ab3.tar.gz
drakx-b5800676d5b869ba528066de8754aa9bc2d91ab3.tar.bz2
drakx-b5800676d5b869ba528066de8754aa9bc2d91ab3.tar.xz
drakx-b5800676d5b869ba528066de8754aa9bc2d91ab3.zip
make_boot_img: Using chain.c32 instead of localboot
localboot is reported as failing on many hosts as in bug #13680 This have been reproduced on VirtualBox environments too. This patch suggest switching to chain.c32 which handle much more options & features than localboot. By default, we replace the localboot by the chainloading hd0.
-rwxr-xr-ximages/make_boot_img4
1 files changed, 3 insertions, 1 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index 543969f88..b7d1f53c7 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -123,7 +123,7 @@ EOF
my $header_gfxboot = <<EOF;
ui gfxboot.c32 bootlogo
label harddisk
- localboot 0x80
+ com32 chain.c32 hd0
EOF
my $header_non_gfxboot = <<EOF;
F1 help.msg
@@ -291,6 +291,7 @@ sub isolinux {
_ "cp /usr/lib/syslinux/libmenu.c32 isolinux/libmenu.c32";
_ "cp /usr/lib/syslinux/libutil.c32 isolinux/libutil.c32";
_ "cp /usr/lib/syslinux/gfxboot.c32 isolinux/gfxboot.c32";
+ _ "cp /usr/lib/syslinux/chain.c32 isolinux/chain.c32";
output("isolinux/isolinux.cfg", syslinux_cfg_all('cdrom', 1));
xbox_stage1() if arch() =~ /i.86/;
@@ -329,6 +330,7 @@ sub boot_iso {
_ "cp /usr/lib/syslinux/libgpl.c32 .boot_iso/isolinux/libgpl.c32";
_ "cp /usr/lib/syslinux/libmenu.c32 .boot_iso/isolinux/libmenu.c32";
_ "cp /usr/lib/syslinux/libutil.c32 .boot_iso/isolinux/libutil.c32";
+ _ "cp /usr/lib/syslinux/chain.c32 .boot_iso/isolinux/chain.c32";
my $with_gfxboot = 0;
_ "cp /usr/share/gfxboot/themes/Mageia/install/* .boot_iso/isolinux" if $with_gfxboot;