Changeset 544


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)
Location:
branches/1.5
Files:
1 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/1.5/Makefile.in

    r539 r544  
    109109        rm -rf $(TAR_DIR)/sali-$(VERSION)/$(CONTRIB_DIR)/.svn
    110110
     111        mkdir -p $(TAR_DIR)/sali-$(VERSION)/bootdisk
     112        mkdir -p $(TAR_DIR)/sali-$(VERSION)/bootdisk/kernel
     113        mkdir -p $(TAR_DIR)/sali-$(VERSION)/bootdisk/images
     114        cp -a $(ROOT_DIR)/bootdisk/isolinux $(TAR_DIR)/sali-$(VERSION)/bootdisk/isolinux
     115        cp -a $(ROOT_DIR)/bootdisk/sali_create_bootdisk $(TAR_DIR)/sali-$(VERSION)/bootdisk
     116        chmod +x $(TAR_DIR)/sali-$(VERSION)/bootdisk/sali_create_bootdisk
     117
    111118        touch $@
    112119
  • branches/1.5/VERSION

    r539 r544  
    1 1.5.6
     11.5.7
  • branches/1.5/bootdisk/isolinux/isolinux.cfg

    r542 r544  
    3535  append vga=extended initrd=/images/initrd.img MONITOR_CONSOLE=no RESCUE=yes VERBOSELEVEL=2 rw
    3636
     37## BEGIN ADD
     38
     39## See README or our documentation online
     40
     41## END ADD
     42
    3743label blank
    3844    menu label ----------------------------------------------------------------------
  • 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"
  • branches/1.5/configure

    r410 r544  
    31693169                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${OS} release ${OS_RELEASE}" >&5
    31703170$as_echo "found ${OS} release ${OS_RELEASE}" >&6; }
     3171                elif  test -e /etc/redhat-release ; then
     3172                        OS=rhel
     3173                        OS_RELEASE=$(cat /etc/redhat-release|awk '{print $3}')
     3174                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${OS} release ${OS_RELEASE}" >&5
     3175$as_echo "found ${OS} release ${OS_RELEASE}" >&6; }
    31713176                else
    31723177                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     
    32233228
    32243229
    3225 ac_config_files="$ac_config_files Makefile initrd/sali/bin/sali_functions"
     3230ac_config_files="$ac_config_files Makefile initrd/sali/bin/sali_functions bootdisk/sali_create_bootdisk"
    32263231
    32273232
     
    39343939    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    39353940    "initrd/sali/bin/sali_functions") CONFIG_FILES="$CONFIG_FILES initrd/sali/bin/sali_functions" ;;
     3941    "bootdisk/sali_create_bootdisk") CONFIG_FILES="$CONFIG_FILES bootdisk/sali_create_bootdisk" ;;
    39363942
    39373943  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  • branches/1.5/configure.ac

    r514 r544  
    8181        Makefile
    8282        initrd/sali/bin/sali_functions
     83        bootdisk/sali_create_bootdisk
    8384])
    8485
Note: See TracChangeset for help on using the changeset viewer.