source: trunk/bootdisk/sali_create_bootdisk.in @ 567

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

Last software update changes, trunk is working again

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/sh
2#
3# A wrapper scrip which uses ISOLINUX to
4# create a bootable SALI cd/usb
5#
6
7SALI_VERSION="@SALI_VERSION@"
8ARCH="@ARCH@"
9CDROOT=$(dirname $(readlink -f $0))
10SALIROOT=$(readlink -e "${CDROOT}/..")
11SALIISO="${SALIROOT}/sali-${ARCH}-${SALI_VERSION}-hybrid.iso"
12GENISOIMAGE=$(which genisoimage)
13ISOHYBRID=$(which isohybrid)
14
15if [ -z "${GENISOIMAGE}" ]; then echo "Could not locate command genisoimage"; exit 1; fi
16if [ -z "${ISOHYBRID}" ]; then echo "Could not locate command isohybrid (part of syslinux)"; exit 1; fi
17
18
19## Step 1: Copy kernel and initrd
20cp "${SALIROOT}/${ARCH}/kernel" "${CDROOT}/kernel"
21cp "${SALIROOT}/${ARCH}/initrd.img" "${CDROOT}/images"
22
23## Step 2: Generate iso
24printf "CREATING A SALI ISO IMAGE\n\n"
25$GENISOIMAGE -o "${SALIISO}" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $CDROOT
26
27## Step 3: Make hybrid iso
28printf "\n\nCONVERTING IMAGE TO HYBRID IMAGE"
29$ISOHYBRID "${SALIISO}"
30printf " done\n"
31
32printf "\nISO IMAGE HAS BEEN STORED TO\n\t${SALIISO}\n"
Note: See TracBrowser for help on using the repository browser.