2007-08-02 03:47:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Do install stuff for x86, including making bootable CDs
|
|
|
|
# Works with debian-installer
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
2008-12-05 13:12:21 -01:00
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/x86-desktop.sh
|
2007-08-02 03:47:50 +00:00
|
|
|
|
|
|
|
set -e
|
2007-09-02 17:18:06 +00:00
|
|
|
#set -x
|
2007-08-02 03:47:50 +00:00
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDDIR=$2
|
|
|
|
BOOTDIR=
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
|
|
|
if [ "$ARCH" = i386 ]; then
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~joeyh/d-i/images/daily"
|
|
|
|
else
|
|
|
|
DI_WWW_HOME="http://people.debian.org/~aba/d-i/images/daily"
|
2007-08-09 21:28:10 +00:00
|
|
|
fi
|
2007-08-02 03:47:50 +00:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
echo "Using images from $DI_DIR"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $CDDIR/..
|
|
|
|
|
|
|
|
# This script is called with $1 (now $N) as the CD to
|
|
|
|
# make bootable. N may be in the form "n" or "n_NONUS"
|
|
|
|
# There may be more than 4 disks...support extras.
|
|
|
|
|
|
|
|
# Strip NONUS part of disk number
|
|
|
|
# NN will be 1...N so it can be used as an index
|
|
|
|
NN=`echo $N | sed -e 's/_NONUS//'`
|
|
|
|
|
|
|
|
# List of boot image types for each CD
|
|
|
|
KTYPE[1]="isolinux"
|
|
|
|
#KTYPE[2]="cdrom"
|
|
|
|
KTYPE[2]=""
|
|
|
|
KTYPE[3]=""
|
|
|
|
KTYPE[4]=""
|
|
|
|
KTYPE[5]=""
|
|
|
|
KTYPE[6]=""
|
|
|
|
KTYPE[7]=""
|
|
|
|
KTYPE[8]=""
|
|
|
|
KTYPE[9]=""
|
|
|
|
KTYPE[10]=""
|
|
|
|
|
|
|
|
THISTYPE=${KTYPE[$NN]}
|
|
|
|
|
2007-09-10 17:47:16 +00:00
|
|
|
INSTALLDIR_i386="install.386"
|
|
|
|
INSTALLDIR_amd64="install.amd"
|
|
|
|
|
2007-08-02 03:47:50 +00:00
|
|
|
if [ "$ARCH" = i386 ]; then
|
2007-09-10 17:47:16 +00:00
|
|
|
INSTALLDIR="$INSTALLDIR_i386"
|
2007-08-02 03:47:50 +00:00
|
|
|
else
|
2007-09-10 17:47:16 +00:00
|
|
|
INSTALLDIR="$INSTALLDIR_amd64"
|
2007-08-02 03:47:50 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
BOOT_IMAGES="cdrom/initrd.gz cdrom/vmlinuz cdrom/debian-cd_info.tar.gz"
|
|
|
|
# Only include disk images on full CDs, not on smaller images.
|
|
|
|
if [ "$ARCH" = i386 ] && [ "$INSTALLER_CD" != 1 ] && [ "$INSTALLER_CD" != 2 ]; then
|
|
|
|
DISK_IMAGES="floppy/cd-drivers.img floppy/boot.img floppy/root.img"
|
|
|
|
#EXTRA_DISK_IMAGES="cdrom/boot.img"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Download boot images.
|
|
|
|
for image in $BOOT_IMAGES; do
|
|
|
|
if [ ! -e "$image" ]; then
|
|
|
|
dir=$(dirname $image)
|
|
|
|
mkdir -p $dir
|
|
|
|
if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
|
|
|
|
cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
|
|
|
|
elif [ ! "$DI_WWW_HOME" ];then
|
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
fi
|
|
|
|
# echo "Copying images from $DI_DIR"
|
|
|
|
cp "$DI_DIR/$image" "$image"
|
|
|
|
else
|
|
|
|
wget "$DI_WWW_HOME/$image" -O "$image"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# Images that are not really required or may be unavailable.
|
|
|
|
for image in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
|
|
|
|
if [ ! -e "$image" ]; then
|
|
|
|
dir=$(dirname $image)
|
|
|
|
mkdir -p $dir
|
|
|
|
if [ -n "$LOCAL" -a -f "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" ]; then
|
|
|
|
cp "${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image" "$image"
|
|
|
|
elif [ ! "$DI_WWW_HOME" ];then
|
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
fi
|
|
|
|
cp "$DI_DIR/$image" "$image" || true
|
|
|
|
else
|
|
|
|
wget "$DI_WWW_HOME/$image" -O "$image" || rm -f "$image"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# Only disk one gets the extra files installed
|
|
|
|
if [ "$NN" = "1" ]; then
|
|
|
|
# populate the install directory as well
|
|
|
|
for disk in $DISK_IMAGES $EXTRA_DISK_IMAGES; do
|
|
|
|
if [ -e "$disk" ]; then
|
|
|
|
dir=$(dirname $disk)
|
|
|
|
mkdir -p $CDDIR/$INSTALLDIR/$dir
|
|
|
|
cp -lf $disk $CDDIR/$INSTALLDIR/$dir
|
|
|
|
fi
|
|
|
|
done
|
2009-02-14 11:16:11 -01:00
|
|
|
|
|
|
|
if [ -e "$MIRROR/tools" ] && \
|
|
|
|
[ ! -e $CDDIR/tools ] && \
|
|
|
|
[ "$OMIT_DOC_TOOLS" != "1" ] ; then
|
|
|
|
echo " Adding tools to CD1"
|
|
|
|
$BASEDIR/tools/add_files $CDDIR $MIRROR tools
|
|
|
|
fi
|
2007-08-02 03:47:50 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
extra_image () {
|
|
|
|
image=$1
|
|
|
|
dir=$(dirname "$image")
|
|
|
|
|
|
|
|
mkdir -p $CDDIR/$INSTALLDIR/$dir
|
|
|
|
if [ ! -e $CDDIR/$INSTALLDIR/"$image" ] ; then
|
|
|
|
if [ ! "$DI_WWW_HOME" ] ; then
|
|
|
|
if [ ! "$DI_DIR" ] ; then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images"
|
|
|
|
fi
|
|
|
|
cp "$DI_DIR/cdrom/$image" $CDDIR/$INSTALLDIR/"$image"
|
|
|
|
else
|
|
|
|
wget "$DI_WWW_HOME/cdrom/$image" -O $CDDIR/$INSTALLDIR/"$image"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2008-12-05 13:12:21 -01:00
|
|
|
# If multiple desktops are to be supported, set the default one
|
|
|
|
ORIG_DESKTOP=
|
|
|
|
case "$DESKTOP" in
|
2008-12-05 13:12:32 -01:00
|
|
|
gnome)
|
|
|
|
# gnome is default in tasksel
|
|
|
|
DESKTOP=
|
|
|
|
KERNEL_PARAMS="$(echo "$KERNEL_PARAMS" | \
|
|
|
|
sed -r "s/desktop=[^ ]* ?//")"
|
|
|
|
;;
|
2008-12-05 13:12:24 -01:00
|
|
|
all)
|
|
|
|
ORIG_DESKTOP=$DESKTOP
|
|
|
|
DESKTOP=
|
|
|
|
;;
|
2008-12-05 13:12:21 -01:00
|
|
|
light)
|
|
|
|
ORIG_DESKTOP=$DESKTOP
|
|
|
|
DESKTOP=xfce
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2007-08-02 03:47:50 +00:00
|
|
|
if [ "$THISTYPE" = "isolinux" ]; then
|
2009-02-14 11:16:11 -01:00
|
|
|
echo " Using ISOLINUX boot-disks image on CD$N"
|
2007-08-02 03:47:50 +00:00
|
|
|
mkdir -p $CDDIR/$INSTALLDIR
|
|
|
|
cp -lf cdrom/vmlinuz $CDDIR/$INSTALLDIR/
|
|
|
|
cp -lf cdrom/initrd.gz $CDDIR/$INSTALLDIR/
|
|
|
|
|
2008-09-18 18:26:14 +00:00
|
|
|
mkdir -p $CDDIR/../syslinux
|
|
|
|
SYSLINUXDEB=`$BASEDIR/tools/which_deb $MIRROR $DI_CODENAME syslinux`
|
2008-11-23 17:19:25 -01:00
|
|
|
(ar p "$MIRROR/${SYSLINUXDEB}" data.tar.gz | \
|
2008-09-18 18:26:14 +00:00
|
|
|
tar zxf - -C $CDDIR/../syslinux ./usr/lib)
|
2008-09-15 23:09:18 +00:00
|
|
|
|
2008-11-23 17:19:25 -01:00
|
|
|
echo $SYSLINUXDEB >> $CDDIR/../$N.pkgs_extracted
|
|
|
|
$BASEDIR/tools/which_deb $MIRROR $DI_CODENAME syslinux source >> $CDDIR/../$N.pkgs_extracted
|
|
|
|
|
2008-09-08 21:53:45 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
2007-08-02 03:47:50 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b isolinux/isolinux.bin"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c isolinux/boot.cat"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-load-size 4"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-info-table"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
2008-11-15 00:08:15 -01:00
|
|
|
|
|
|
|
|
|
|
|
# In case of a multi-arch CD the script will be called two times.
|
|
|
|
# The first time the isolinux dir gets set up for single arch; if
|
|
|
|
# it is called a second time the isolinux dir already exists and we
|
|
|
|
# know it will be multi-arch. We then throw away the first version
|
|
|
|
# and just configure things from scratch for multi-arch.
|
|
|
|
|
|
|
|
MULTIARCH=
|
|
|
|
if [ -e boot$N/isolinux/isolinux.cfg ]; then
|
|
|
|
MULTIARCH=1
|
|
|
|
rm -r boot$N/isolinux
|
2007-08-02 03:47:50 +00:00
|
|
|
fi
|
2008-11-15 00:08:15 -01:00
|
|
|
|
|
|
|
mkdir -p boot$N/isolinux
|
2007-08-02 03:47:50 +00:00
|
|
|
# Isolinux setup including config and help files comes from d-i.
|
2008-11-15 00:08:15 -01:00
|
|
|
cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx)
|
|
|
|
|
2007-09-10 17:47:16 +00:00
|
|
|
# Not everything in the tarball is isolinux stuff
|
2008-11-15 00:08:15 -01:00
|
|
|
if [ -e boot$N/isolinux/win32-loader.ini ] ; then
|
|
|
|
mv boot$N/isolinux/g2ldr* boot$N/isolinux/setup.exe \
|
|
|
|
boot$N/isolinux/win32-loader.ini boot$N/
|
2007-09-17 10:52:03 +00:00
|
|
|
fi
|
2008-11-15 00:08:15 -01:00
|
|
|
|
|
|
|
if [ -e boot$N/isolinux/f3.txt.withgtk ]; then
|
2007-08-02 03:47:50 +00:00
|
|
|
extra_image gtk/initrd.gz
|
2008-11-15 00:08:15 -01:00
|
|
|
mv boot$N/isolinux/f3.txt.withgtk boot$N/isolinux/f3.txt
|
|
|
|
mv boot$N/isolinux/f4.txt.withgtk boot$N/isolinux/f4.txt
|
|
|
|
if [ -e boot$N/isolinux/isolinux.cfg.withgtk ]; then
|
|
|
|
mv boot$N/isolinux/isolinux.cfg.withgtk boot$N/isolinux/isolinux.cfg
|
2008-05-01 20:52:03 +00:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
# Remove gtk isolinux config files.
|
2008-09-21 22:02:22 +00:00
|
|
|
# FJP: AFAICT this is redundant: if f3.txt.withgtk is not
|
|
|
|
# included then the *gtk* files will not be either.
|
2008-11-15 00:08:15 -01:00
|
|
|
rm -f boot$N/isolinux/gtk.cfg
|
|
|
|
rm -f boot$N/isolinux/amdgtk.cfg
|
|
|
|
rm -f boot$N/isolinux/adgtk.cfg
|
2008-11-23 10:53:57 -01:00
|
|
|
rm -f boot$N/isolinux/amdadgtk.cfg
|
2007-08-02 03:47:50 +00:00
|
|
|
fi
|
2008-11-15 00:08:15 -01:00
|
|
|
rm -f boot$N/isolinux/isolinux.cfg.with*
|
2007-08-02 03:47:50 +00:00
|
|
|
|
2008-11-15 00:08:15 -01:00
|
|
|
# Modify win32-loader.ini for the "current" arch
|
|
|
|
if [ -e boot$N/win32-loader.ini ]; then
|
2008-09-18 18:26:14 +00:00
|
|
|
sed -i "s|install/|$INSTALLDIR/|" boot$N/win32-loader.ini
|
|
|
|
if [ "${DESKTOP}" ] ; then
|
|
|
|
sed -i "s|^\(default_desktop\)=.*|\1=${DESKTOP}|" boot$N/win32-loader.ini
|
|
|
|
fi
|
2007-09-18 09:48:49 +00:00
|
|
|
fi
|
2007-09-10 17:47:16 +00:00
|
|
|
|
2008-11-15 00:08:15 -01:00
|
|
|
cp -f $CDDIR/../syslinux/usr/lib/syslinux/isolinux.bin boot$N/isolinux/
|
|
|
|
cp -f $CDDIR/../syslinux/usr/lib/syslinux/vesamenu.c32 boot$N/isolinux/
|
2007-08-02 03:47:50 +00:00
|
|
|
|
2008-11-15 00:08:15 -01:00
|
|
|
if [ -z "$MULTIARCH" ]; then
|
|
|
|
# Set up isolinux dir for only the current arch
|
2009-01-30 04:00:16 -01:00
|
|
|
for f in txt.cfg gtk.cfg adtxt.cfg adgtk.cfg; do
|
2008-11-15 00:08:15 -01:00
|
|
|
if [ -e boot$N/isolinux/$f ]; then
|
|
|
|
sed -i "s|/install/|/$INSTALLDIR/|" boot$N/isolinux/$f
|
|
|
|
fi
|
2007-08-02 03:47:50 +00:00
|
|
|
done
|
|
|
|
|
2008-11-23 10:53:57 -01:00
|
|
|
# Remove the amd*.cfg files to avoid them being loaded on a
|
2008-11-15 00:08:12 -01:00
|
|
|
# disc that does not have both amd64 and i386 dirs.
|
2008-11-23 10:53:57 -01:00
|
|
|
rm -f boot$N/isolinux/amd*.cfg
|
2008-11-15 00:08:15 -01:00
|
|
|
else
|
|
|
|
# Set up isolinux dir for multi-arch
|
2009-01-30 04:00:16 -01:00
|
|
|
for f in txt.cfg gtk.cfg adtxt.cfg adgtk.cfg; do
|
2008-11-15 00:08:15 -01:00
|
|
|
if [ -e boot$N/isolinux/$f ]; then
|
|
|
|
sed -i "s|/install/|/$INSTALLDIR_i386/|" boot$N/isolinux/$f
|
|
|
|
fi
|
|
|
|
done
|
2009-01-30 04:00:16 -01:00
|
|
|
for f in amdtxt.cfg amdgtk.cfg amdadtxt.cfg amdadgtk.cfg; do
|
2008-11-15 00:08:15 -01:00
|
|
|
if [ -e boot$N/isolinux/$f ]; then
|
|
|
|
sed -i "s|/install/|/$INSTALLDIR_amd64/|" boot$N/isolinux/$f
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
for file in boot$N/isolinux/f3.txt* boot$N/isolinux/f4.txt*; do
|
|
|
|
sed -i "4 s/^$/(note: i386 is default; prepend 'amd64-' to use an amd64 kernel instead)/" $file
|
|
|
|
done
|
|
|
|
|
|
|
|
# Modify win32-loader.ini to also cover the "other" arch
|
|
|
|
if [ "$ARCH" = i386 ]; then
|
|
|
|
sed -i -e "/^arch=/d
|
|
|
|
/^i386\//p; s/^i386/amd64/; s/=$INSTALLDIR_i386/=$INSTALLDIR_amd64/g" \
|
|
|
|
boot$N/win32-loader.ini
|
|
|
|
else
|
|
|
|
sed -i -e "/^arch=/d
|
|
|
|
/^amd64\//p; s/^amd64/i386/; s/=$INSTALLDIR_amd64/=$INSTALLDIR_i386/g" \
|
|
|
|
boot$N/win32-loader.ini
|
|
|
|
fi
|
2008-11-19 15:08:22 -01:00
|
|
|
|
|
|
|
# Workaround for #505243
|
|
|
|
# Syslinux does not correctly handle a default64 option
|
|
|
|
# in combination with vesamenu.
|
|
|
|
# Instead, add special default label to automatically select
|
|
|
|
# i386/amd64 if user hits enter from help screens.
|
|
|
|
cp -f $CDDIR/../syslinux/usr/lib/syslinux/ifcpu64.c32 boot$N/isolinux/
|
|
|
|
sed -i "/^default install/ s/^/#/" \
|
2009-01-30 04:00:16 -01:00
|
|
|
boot$N/isolinux/txt.cfg || true
|
2008-11-19 15:08:22 -01:00
|
|
|
sed -i "/^default64 amd64-install/ s/^/#/" \
|
2009-01-30 04:00:16 -01:00
|
|
|
boot$N/isolinux/amdtxt.cfg || true
|
2008-11-19 15:08:22 -01:00
|
|
|
sed -i "/^include menu.cfg/ a\include instsel.cfg" \
|
|
|
|
boot$N/isolinux/prompt.cfg
|
|
|
|
cat >boot$N/isolinux/instsel.cfg <<EOF
|
|
|
|
default install-select
|
|
|
|
label install-select
|
2008-12-05 13:11:58 -01:00
|
|
|
kernel ifcpu64.c32
|
|
|
|
append amd64-install -- install
|
2008-11-19 15:08:22 -01:00
|
|
|
EOF
|
|
|
|
# Workaround for #505243 ends here
|
2007-08-02 03:47:50 +00:00
|
|
|
fi
|
2008-11-15 00:08:15 -01:00
|
|
|
|
2007-08-02 03:47:50 +00:00
|
|
|
if [ "$SPLASHPNG" ] ; then
|
|
|
|
# Insert our own splash screen. Color index 0 is
|
|
|
|
# background, and index 7 is foreground. Set to black and
|
|
|
|
# white respecively
|
|
|
|
pngtopnm < $SPLASHPNG | ppmquant 16 | \
|
|
|
|
ppmtolss16 "#ffffff=7" "#000000=0" > boot$N/isolinux/splash.rle
|
|
|
|
fi
|
|
|
|
|
|
|
|
sed -i "s|built on|built $BUILD_DATE; d-i|" boot$N/isolinux/f1.txt
|
2008-06-08 22:13:42 +00:00
|
|
|
|
|
|
|
if [ -n "$KERNEL_PARAMS" ]; then
|
|
|
|
# Substitute custom kernel params into the isolinux config
|
|
|
|
# file(s)
|
2008-12-05 13:11:58 -01:00
|
|
|
for file in boot$N/isolinux/*.cfg; do
|
|
|
|
case "$(basename $file)" in
|
|
|
|
instsel.cfg)
|
|
|
|
continue ;;
|
|
|
|
esac
|
|
|
|
sed -i "/^[[:space:]]\+append .*--/ s|append|append $KERNEL_PARAMS|" \
|
|
|
|
$file
|
|
|
|
done
|
2008-06-08 22:13:42 +00:00
|
|
|
fi
|
2008-12-05 13:12:21 -01:00
|
|
|
|
|
|
|
case "$ORIG_DESKTOP" in
|
2008-12-05 13:12:24 -01:00
|
|
|
all)
|
|
|
|
modify_for_all_desktop ;;
|
2008-12-05 13:12:21 -01:00
|
|
|
light)
|
|
|
|
modify_for_light_desktop ;;
|
|
|
|
esac
|
2007-08-02 03:47:50 +00:00
|
|
|
else
|
|
|
|
if [ -n "$THISTYPE" ]; then
|
|
|
|
echo "Using $THISTYPE boot-disks image on CD$N"
|
|
|
|
mkdir -p boot$N/boot
|
|
|
|
cp $THISTYPE/boot.img boot$N/boot/
|
|
|
|
|
2008-09-08 21:53:45 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
2007-08-02 03:47:50 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.img"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
|
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
|
|
|
else
|
2008-12-05 13:12:04 -01:00
|
|
|
mkdir -p boot$N
|
2008-09-08 21:53:45 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
|
2007-08-02 03:47:50 +00:00
|
|
|
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2007-09-12 16:31:27 +00:00
|
|
|
# Add autorun
|
2007-09-13 18:28:21 +00:00
|
|
|
if [ -f boot$N/setup.exe ]; then
|
2007-09-12 16:31:27 +00:00
|
|
|
# when win32-loader is present, use that (it already checks for README.html)
|
|
|
|
todos > $CDDIR/autorun.inf <<EOF
|
|
|
|
[autorun]
|
|
|
|
open=setup.exe
|
|
|
|
EOF
|
|
|
|
elif [ -f $CDDIR/README.html ]; then
|
2007-08-02 03:47:50 +00:00
|
|
|
todos > $CDDIR/autorun.inf <<EOF
|
|
|
|
[autorun]
|
|
|
|
open=autorun.bat
|
|
|
|
EOF
|
|
|
|
todos > $CDDIR/autorun.bat <<EOF
|
|
|
|
@echo Starting "README.html"...
|
|
|
|
@start README.html
|
|
|
|
@exit
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf cdrom floppy
|
|
|
|
|
|
|
|
# th,th, thats all
|