summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_iso
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_binary_iso')
-rwxr-xr-xscripts/build/lb_binary_iso69
1 files changed, 69 insertions, 0 deletions
diff --git a/scripts/build/lb_binary_iso b/scripts/build/lb_binary_iso
index 0394d36..7b6fe10 100755
--- a/scripts/build/lb_binary_iso
+++ b/scripts/build/lb_binary_iso
@@ -106,6 +106,21 @@ then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LB_ISO_VOLUME}\""
fi
+if [ -f config/binary_iso/isoimage.sort ]
+then
+ GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -sort isoimage.sort"
+
+ case "${LB_BUILD_WITH_CHROOT}" in
+ true)
+ cp config/binary_iso/isoimage.sort chroot
+ ;;
+
+ false)
+ cp config/binary_iso/isoimage.sort .
+ ;;
+ esac
+fi
+
# Handle genisoimage architecture specific options
case "${LB_BOOTLOADER}" in
grub)
@@ -120,6 +135,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 +201,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 +219,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 +264,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