Last change
on this file was
555,
checked in by dennis, 8 years ago
|
Preparing new release new version of SALI
|
-
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 | |
---|
7 | SALI_VERSION="@SALI_VERSION@" |
---|
8 | ARCH="@ARCH@" |
---|
9 | CDROOT=$(dirname $(readlink -f $0)) |
---|
10 | SALIROOT=$(readlink -e "${CDROOT}/..") |
---|
11 | SALIISO="${SALIROOT}/sali-${ARCH}-${VERSION}-hybrid.iso" |
---|
12 | GENISOIMAGE=$(which genisoimage) |
---|
13 | ISOHYBRID=$(which isohybrid) |
---|
14 | |
---|
15 | if [ -z "${GENISOIMAGE}" ]; then echo "Could not locate command genisoimage"; exit 1; fi |
---|
16 | if [ -z "${ISOHYBRID}" ]; then echo "Could not locate command isohybrid (part of syslinux)"; exit 1; fi |
---|
17 | |
---|
18 | |
---|
19 | ## Step 1: Copy kernel and initrd |
---|
20 | cp "${SALIROOT}/${ARCH}/kernel" "${CDROOT}/kernel" |
---|
21 | cp "${SALIROOT}/${ARCH}/initrd.img" "${CDROOT}/images" |
---|
22 | |
---|
23 | ## Step 2: Generate iso |
---|
24 | printf "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 |
---|
28 | printf "\n\nCONVERTING IMAGE TO HYBRID IMAGE" |
---|
29 | $ISOHYBRID "${SALIISO}" |
---|
30 | printf " done\n" |
---|
31 | |
---|
32 | printf "\nISO IMAGE HAS BEEN STORED TO\n\t${SALIISO}\n" |
---|
Note: See
TracBrowser
for help on using the repository browser.