#!/bin/sh ISO_IMAGES=${ISO_IMAGES:-/storage/images_iso} MIRRORS=${MIRRORS:-/storage/} PATHTOISO=$ISO_IMAGES/${1}.iso if [ ! "$#" = "1" ]; then echo "Usage: ./make_genuine_slackware_iso should be slackware- or slackware64- and a mirror of it should be available in \$MIRRORS. Set ISO_IMAGES and MIRRORS first." echo exit fi if [ ! -d $MIRRORS/$1 ]; then echo "No mirror $MIRRORS/$1. Check your typing and settings, mount the removable device hosting it if need be then run this script again." exit fi if [ ! -d $ISO_IMAGES ]; then echo "Directory $ISO_IMAGES that should host ISO images doesn't exist. Check your typing and settings, mount the removable device hosting it if need be then run this script again." exit fi if [ -f $ISO_IMAGES/${1}.iso ]; then echo "$ISO_IMAGES/${1}.iso is already there. Rebuild? [y/N] " read -e rebuild if [ ! "$rebuild" = "y" ]; then echo "bye, then." echo exit fi fi ( cd $MIRRORS/$1 SFX=$(echo $1|grep 64) if [ "$SFX" != "" ]; then EFIOPTIONS="-eltorito-alt-boot -e isolinux/efiboot.img -isohybrid-gpt-basdat -no-emul-boot" fi xorriso -as mkisofs \ -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \ -hide-rr-moved \ -U \ -V "SlackDVD" \ -J \ -joliet-long \ -r \ -v \ -x source \ -o $PATHTOISO \ -b isolinux/isolinux.bin \ -c isolinux/boot.cat \ -no-emul-boot \ -boot-info-table $EFIOPTIONS . \ ) 2>${PATHTOISO%iso}log.txt