#!/bin/sh # Run this script in the isolinux directory to generate a complete ISO # (including everything, even the source code) in $TMP. This may be written # to a USB flash drive, or burned onto optical media (if the media has enough # space to hold it). if [ ! -d ../isolinux ]; then echo "Run this script in the Slackware tree's 'isolinux' directory." exit 1 fi TMP=${TMP:-/tmp} if [ -d ../slackware64 ]; then SLACKNAME="slackware64" else SLACKNAME="slackware" fi # Find the Slackware version from the installer: if [ -r ../source/installer/installer.SlackBuild ]; then SLACKVERSION="$(grep "^INSTALLERVERSION=" ../source/installer/installer.SlackBuild | cut -f 2 -d \")" else # guess SLACKVERSION="666" fi rm -f $TMP/${SLACKNAME}-${SLACKVERSION}-complete.img ( cd .. xorriso -as mkisofs \ -iso-level 3 \ -full-iso9660-filenames \ -R -J -A "$SLACKNAME $SLACKVERSION complete" \ -hide-rr-moved \ -v -d -N \ -eltorito-boot isolinux/isolinux.bin \ -eltorito-catalog isolinux/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table \ -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ -eltorito-alt-boot \ -e isolinux/efiboot.img \ -no-emul-boot -isohybrid-gpt-basdat \ -volid "SlackDVD" \ -output $TMP/${SLACKNAME}-${SLACKVERSION}-complete.img \ . )