source: branches/1.5/bootdisk/create @ 542

Last change on this file since 542 was 542, checked in by dennis, 8 years ago

Added some first files to create a bootable cd/dvd/usb, see #56

  • Property svn:executable set to *
File size: 804 bytes
Line 
1#!/bin/sh
2#
3# A wrapper scrip which uses ISOLINUX to
4# create a bootable SALI cd/usb
5#
6
7CDROOT=$(pwd)
8GENISOIMAGE=$(which genisoimage)
9ISOHYBRID=$(which isohybrid)
10
11if [ -z "${GENISOIMAGE}" ]; then echo "Could not locate command genisoimage"; exit 1; fi
12if [ -z "${ISOHYBRID}" ]; then echo "Could not locate command genisoimage"; exit 1; fi
13
14SALI_VERSION="$(file ${CDROOT}/kernel/kernel |awk '{print $9}' | awk -F "v" '{print $2}')" 
15
16## Step 1: Copy the kernel and initrd
17printf "Creating iso image\n"
18$GENISOIMAGE -o "$(pwd)/../sali-${SALI_VERSION}-hybrid.iso" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $CDROOT
19
20## Step 2: Make hybrid iso
21printf "\n\nConverting iso to hybrid"
22$ISOHYBRID "$(pwd)/../sali-${SALI_VERSION}-hybrid.iso"
23printf " done\n"
Note: See TracBrowser for help on using the repository browser.