diff options
author | Sebastian Schmelzer | 2012-06-25 17:45:55 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2012-06-25 17:45:55 +0200 |
commit | 5dfcf5a3a2de4718dccb5eef817e42ce98c78186 (patch) | |
tree | 51263ef411b58c7ca9b8cf05860608ec9e3a144c /inc/build.iso.sh | |
download | osib-5dfcf5a3a2de4718dccb5eef817e42ce98c78186.tar.gz osib-5dfcf5a3a2de4718dccb5eef817e42ce98c78186.tar.xz osib-5dfcf5a3a2de4718dccb5eef817e42ce98c78186.zip |
initial commit
Diffstat (limited to 'inc/build.iso.sh')
-rwxr-xr-x | inc/build.iso.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/inc/build.iso.sh b/inc/build.iso.sh new file mode 100755 index 0000000..2a0e29e --- /dev/null +++ b/inc/build.iso.sh @@ -0,0 +1,51 @@ +#!/bin/bash + +ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..) +SYSLINUX=${ROOT_DIR}/share/contrib/syslinux/latest + +. ${ROOT_DIR}/config/paths.conf + +[ ! -f ${SYSLINUX}/Makefile ] && $ROOT_DIR/inc/env.setup-syslinux.sh + +########################################################### CREATE # ISO ##### + +mkdir -p /tmp/openslx-iso/isolinux + +cp ${BUILDROOT_OUT_PATH}/bzImage /tmp/openslx-iso/isolinux/kernel + +cp $ROOT_DIR/build/initramfs-default /tmp/openslx-iso/isolinux/initramfs + +cp $SYSLINUX/com32/menu/menu.c32 /tmp/openslx-iso/isolinux/ +cp $SYSLINUX/com32/menu/vesamenu.c32 /tmp/openslx-iso/isolinux/ + +# exchange this for another theme +cp ${ROOT_DIR}/config/extlinux/pbs2.png /tmp/openslx-iso/isolinux/ +sed -e "s,USB,ISO," $ROOT_DIR/config/extlinux/extlinux.conf \ + > /tmp/openslx-iso/isolinux/isolinux.cfg + + +# add tools needed for menu setup and ramdisk environment +cp ${SYSLINUX}/core/isolinux.bin ${SYSLINUX}/com32/menu/vesamenu.c32 \ + ${SYSLINUX}/com32/menu/menu.c32 /tmp/openslx-iso/isolinux/ + +# create an autorun.inf file +echo -en "icon=\boot\openslx.ico,0\r\nlabel=OpenSLX PreBoot Linux\r\n" \ + > /tmp/openslx-iso/autorun.inf +cp ${ROOT_DIR}/share/files/COPYING /tmp/openslx-iso/copying.txt + + +cd ${ROOT_DIR} + +# generate the ISO image +echo -e "[make-boot-iso]\t\tGenerating the ISO image" +genisoimage -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \ + -r -J -l -boot-info-table -o ./openslx.iso -hide-list config/hide.conf \ + -abstract /tmp/openslx-iso/isolinux/info.txt -relaxed-filenames \ + -biblio /tmp/openslx-iso/isolinux/info.txt -publisher "OpenSLX GmbH" \ + -p "OpenSLX Project, http://lab.openslx.org, info@openslx.org" \ + -V "OpenSLX PreBoot Linux ISO Image" -input-charset iso8859-1 \ + -volset "PreBoot Linux of the OpenSLX Project" -joliet-long \ + -copyright /tmp/openslx-iso/copying.txt /tmp/openslx-iso/ +#2>/dev/null +echo -e "[make-boot-iso]\t\tOpenSLX PreBoot image created." + |