Ignore:
Timestamp:
02/01/13 16:28:05 (8 years ago)
Author:
dennis
Message:

Added a simple setup to generate a bootable iso which can be burned to
an cd or can be used to create a bootable USB disk, see #56

The bootdisk files will be packed with the tar.gz which can be downloaded from out ftp. When unpacked you just have to run the shell script
sali_create_bootdisk. This requires the following tools:

  • genisoimage (on most distributions available as genisoimage package)
  • isohybrid (on most distribution available in the syslinux package)
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/1.5/bootdisk/sali_create_bootdisk.in

    r542 r544  
    55#
    66
    7 CDROOT=$(pwd)
     7SALI_VERSION="@VERSION@"
     8ARCH="@ARCH@"
     9CDROOT=$(dirname $(readlink -f $0))
     10SALIROOT=$(readlink -e "${CDROOT}/..")
     11SALIISO="${SALIROOT}/sali-${ARCH}-${VERSION}-hybrid.iso"
    812GENISOIMAGE=$(which genisoimage)
    913ISOHYBRID=$(which isohybrid)
    1014
    1115if [ -z "${GENISOIMAGE}" ]; then echo "Could not locate command genisoimage"; exit 1; fi
    12 if [ -z "${ISOHYBRID}" ]; 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
    1317
    14 SALI_VERSION="$(file ${CDROOT}/kernel/kernel |awk '{print $9}' | awk -F "v" '{print $2}')"
    1518
    16 ## Step 1: Copy the kernel and initrd
    17 printf "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## Step 1: Copy kernel and initrd
     20cp "${SALIROOT}/${ARCH}/kernel" "${CDROOT}/kernel"
     21cp "${SALIROOT}/${ARCH}/initrd.img" "${CDROOT}/images"
    1922
    20 ## Step 2: Make hybrid iso
    21 printf "\n\nConverting iso to hybrid"
    22 $ISOHYBRID "$(pwd)/../sali-${SALI_VERSION}-hybrid.iso"
     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}"
    2330printf " done\n"
     31
     32printf "\nISO IMAGE HAS BEEN STORED TO\n\t${SALIISO}\n"
Note: See TracChangeset for help on using the changeset viewer.