summaryrefslogtreecommitdiff
path: root/scripts/build/lb_binary_iso
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-05 11:53:55 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-24 22:05:28 +0100
commit319aa92a25614b17181a5beb917998777fa893d7 (patch)
tree51fe2ac5c857efe2f33daecf69ff3282d2ee1803 /scripts/build/lb_binary_iso
parent3fa575103c6549ad7df429e385ce69f228e7ee31 (diff)
downloadlive-build-319aa92a25614b17181a5beb917998777fa893d7.zip
live-build-319aa92a25614b17181a5beb917998777fa893d7.tar.gz
added support for burg bootloader
Diffstat (limited to 'scripts/build/lb_binary_iso')
-rwxr-xr-xscripts/build/lb_binary_iso54
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