diff options
Diffstat (limited to 'scripts/build/lb_binary_iso')
-rwxr-xr-x | scripts/build/lb_binary_iso | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/scripts/build/lb_binary_iso b/scripts/build/lb_binary_iso index 0394d36..813919f 100755 --- a/scripts/build/lb_binary_iso +++ b/scripts/build/lb_binary_iso @@ -120,6 +120,12 @@ case "${LB_BOOTLOADER}" in GENISOIMAGE_EXCLUDE="boot/grub/grub_eltorito" ;; + burg) + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" + GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -r -b boot/burg/burg_eltorito -J" + GENISOIMAGE_EXCLUDE="boot/burg/burg_eltorito" + ;; + silo) GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -r -G boot/isofs.b -B ..." GENISOIMAGE_EXCLUDE="boot/isofs.b" @@ -180,6 +186,11 @@ grub-mkimage -d \${input_dir} -o \${core_img} ${GRUB_MKIMAGE_OPTIONS} biosdisk i # build grub_eltorito image cat \${input_dir}/cdboot.img \${core_img} > binary/boot/grub/grub_eltorito +if [ "${LB_BINARY_IMAGES}" = "iso-hybrid" ]; then + for i in \$(seq 64); do echo -n "ACRITOX!"; done > binary/boot.isohybrid + cat \${core_img} >> binary/boot.isohybrid +fi + rm -f \${core_img} for file in \${input_dir}/*.mod \${input_dir}/efiemu??.o \ @@ -193,6 +204,39 @@ do done EOF +elif [ "${LB_BOOTLOADER}" = "burg" ] +then + +cat > binary.sh << EOF +#!/bin/sh + +input_dir=/usr/lib/burg/i386-pc + +# build core.img +core_img=\$(mktemp) +burg-mkimage -d \${input_dir} -o \${core_img} biosdisk iso9660 + +# build burg_eltorito image +cat \${input_dir}/cdboot.img \${core_img} > binary/boot/burg/burg_eltorito + +if [ "${LB_BINARY_IMAGES}" = "iso-hybrid" ]; then + for i in \$(seq 64); do echo -n "ACRITOX!"; done > binary/boot.isohybrid + cat \${core_img} >> binary/boot.isohybrid +fi + +rm -f \${core_img} + +for file in \${input_dir}/*.mod \${input_dir}/efiemu??.o \ + \${input_dir}/command.lst \${input_dir}/moddep.lst \${input_dir}/fs.lst \ + \${input_dir}/handler.lst \${input_dir}/parttool.lst +do + if test -f "\$file" + then + cp -f "\$file" binary/boot/burg + fi +done +EOF + else echo "#!/bin/sh" > binary.sh fi @@ -205,10 +249,20 @@ EOF if [ "${LB_BINARY_IMAGES}" = "iso-hybrid" ] then +case "${LB_BOOTLOADER}" in +grub2|burg) +cat >> binary.sh << EOF + +isohybrid-bg2 ${ISOHYBRID_OPTIONS} ${IMAGE} +EOF +;; +syslinux) cat >> binary.sh << EOF isohybrid ${ISOHYBRID_OPTIONS} ${IMAGE} EOF +;; +esac fi |