Make the boot scripts more consistent in how they call add_mkisofs_opt

This commit is contained in:
Steve McIntyre 2006-12-21 16:05:32 +00:00
parent 67d9909bbe
commit 4a2a622525
11 changed files with 68 additions and 70 deletions

View File

@ -85,17 +85,17 @@ EOF
mkdir -p boot$N/milo mkdir -p boot$N/milo
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $N.mkisofs_opts "-l" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
add_mkisofs_opt $N.mkisofs_opts "-alpha-boot boot/bootlx" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-alpha-boot boot/bootlx"
add_mkisofs_opt $N.mkisofs_dirs "boot$N" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
else else
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $N.mkisofs_opts "-l" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
fi fi
#install_languages $CDDIR #install_languages $CDDIR

View File

@ -71,13 +71,13 @@ mkdir -p boot$N/isolinux boot$N/isolinux-amd64 $CDDIR/install.amd
cp -lf cdrom/vmlinuz $CDDIR/install.amd/ cp -lf cdrom/vmlinuz $CDDIR/install.amd/
cp -lf cdrom/initrd.gz $CDDIR/install.amd/ cp -lf cdrom/initrd.gz $CDDIR/install.amd/
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $N.mkisofs_opts "-b isolinux/isolinux.bin" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b isolinux/isolinux.bin"
add_mkisofs_opt $N.mkisofs_opts "-c isolinux/boot.cat" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c isolinux/boot.cat"
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
add_mkisofs_opt $N.mkisofs_opts "-boot-load-size 4" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-load-size 4"
add_mkisofs_opt $N.mkisofs_opts "-boot-info-table" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-info-table"
syslinux_files () { syslinux_files () {
type=$1 type=$1
@ -184,7 +184,6 @@ EOF
EOF EOF
fi fi
# write final lines to mkisofs_opts add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
# th,th, thats all # th,th, thats all

View File

@ -31,7 +31,7 @@ fi
cd $CDDIR/.. cd $CDDIR/..
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
# Only disk 1* bootable # Only disk 1* bootable
if [ $N != 1 ] && [ $N != 1_NONUS ]; then if [ $N != 1 ] && [ $N != 1_NONUS ]; then

View File

@ -102,26 +102,26 @@ if [ "$NN" = "1" ]; then
cp -lf cdrom/vmlinuz $CDDIR/install.386/ cp -lf cdrom/vmlinuz $CDDIR/install.386/
cp -lf cdrom/initrd.gz $CDDIR/install.386/ cp -lf cdrom/initrd.gz $CDDIR/install.386/
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $N.mkisofs_opts "-b isolinux/isolinux.bin" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b isolinux/isolinux.bin"
add_mkisofs_opt $N.mkisofs_opts "-c isolinux/boot.cat" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c isolinux/boot.cat"
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
add_mkisofs_opt $N.mkisofs_opts "-boot-load-size 4" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-load-size 4"
add_mkisofs_opt $N.mkisofs_opts "-boot-info-table" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-boot-info-table"
else else
if [ -n "$THISTYPE" ]; then if [ -n "$THISTYPE" ]; then
echo " Using $THISTYPE boot-disks image on CD$N" echo " Using $THISTYPE boot-disks image on CD$N"
mkdir -p boot$N/boot mkdir -p boot$N/boot
cp $THISTYPE/boot.img boot$N/boot/ cp $THISTYPE/boot.img boot$N/boot/
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.img" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.img"
else else
mkdir boot$N mkdir boot$N
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
fi fi
fi fi
@ -254,13 +254,12 @@ EOF
EOF EOF
fi fi
# write final lines to mkisofs_opts
if [ "$NN" = "1" ]; then if [ "$NN" = "1" ]; then
add_mkisofs_opt $N.mkisofs_dirs "boot$N" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
else else
if [ -n "$THISTYPE" ]; then if [ -n "$THISTYPE" ]; then
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
add_mkisofs_opt $N.mkisofs_dirs "boot$N" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
fi fi
fi fi

View File

@ -28,7 +28,7 @@ cd $CDDIR/..
# Only disc 1 bootable # Only disc 1 bootable
if [ $N != 1 -a $N != 1_NONUS ]; then if [ $N != 1 -a $N != 1_NONUS ]; then
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
exit 0; exit 0;
fi fi
@ -53,12 +53,12 @@ install_languages $CDDIR
mkdir -p boot$N/boot mkdir -p boot$N/boot
cp -f boot.img boot$N/boot/ cp -f boot.img boot$N/boot/
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.img" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.img"
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
add_mkisofs_opt $N.mkisofs_dirs "boot$N" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
# done # done

View File

@ -32,12 +32,12 @@ cd $CDDIR/..
# Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas # Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
# MAXDISKBLOCKS is measured in 2K blocks # MAXDISKBLOCKS is measured in 2K blocks
newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc` newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
add_mkisofs_opt $N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_opts "--netatalk" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
add_mkisofs_opt $N.mkisofs_opts "-hfs" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
add_mkisofs_opt $N.mkisofs_opts "-probe" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
add_mkisofs_opt $N.mkisofs_opts "-map $BASEDIR/data/hfs.map" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
# Only disk 1 bootable # Only disk 1 bootable
if [ $N != 1 ]; then if [ $N != 1 ]; then
@ -90,9 +90,9 @@ cd $INSTALLDIR
if [ -f tools/cdrom/bvme6000-boot.img.gz ]; then if [ -f tools/cdrom/bvme6000-boot.img.gz ]; then
mkdir -p $CDDIR/boot1/boot mkdir -p $CDDIR/boot1/boot
cp tools/cdrom/bvme6000-boot.img.gz $CDDIR/boot1/boot/boot.bin cp tools/cdrom/bvme6000-boot.img.gz $CDDIR/boot1/boot/boot.bin
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.bin" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.bin"
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
add_mkisofs_opt $N.mkisofs_dirs "boot1" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot1"
fi fi
##-----------------------------< end of file >------------------------------## ##-----------------------------< end of file >------------------------------##

View File

@ -24,7 +24,7 @@ if [ ! "$DI_DIST" ]; then
DI_DIST="$DI_CODENAME" DI_DIST="$DI_CODENAME"
fi fi
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J"
# Only disk 1* bootable # Only disk 1* bootable
if [ $N != 1 -a $N != 1_NONUS ]; then if [ $N != 1 -a $N != 1_NONUS ]; then
@ -47,8 +47,8 @@ install -m 644 -D "$DI_DIR"/r4k-ip22/cdrom-boot.img "$CDROOT"/install/r4k-ip22-b
install_languages $CDROOT install_languages $CDROOT
add_mkisofs_opt $N.mkisofs_opts "-mips-boot install/r4k-ip22-boot.img" add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-mips-boot install/r4k-ip22-boot.img"
#r5k-ip32 has no cdrom boot image yet #r5k-ip32 has no cdrom boot image yet
#echo " -mips-boot install/r5k-ip32-boot.img" >> $1.mkisofs_opts #add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-mips-boot install/r5k-ip32-boot.img"
exit 0 exit 0

View File

@ -39,7 +39,7 @@ NN=`echo $N | sed -e 's/_NONUS//'`
cd $CDROOT/.. cd $CDROOT/..
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J"
# Only disks 1 bootable # Only disks 1 bootable
if [ $NN != 1 ]; then if [ $NN != 1 ]; then
@ -71,6 +71,6 @@ cp "$DI_DIR"/vmlinux-*-r4k-kn04 "$CDROOT/boot/vmlinux-r4k-kn04"
install_languages $CDROOT install_languages $CDROOT
add_mkisofs_opt $N.mkisofs_opts "-mipsel-boot boot/delo.2nd" add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-mipsel-boot boot/delo.2nd"
exit 0 exit 0

View File

@ -29,28 +29,28 @@ cd $CDDIR/..
install_languages $CDDIR install_languages $CDDIR
add_mkisofs_opt $N.mkisofs_opts "--iso-level 2" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--iso-level 2"
add_mkisofs_opt $N.mkisofs_opts "--netatalk" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
add_mkisofs_opt $N.mkisofs_opts "-hfs" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
add_mkisofs_opt $N.mkisofs_opts "-probe" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
add_mkisofs_opt $N.mkisofs_opts "-map $BASEDIR/data/hfs.map" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
# Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas # Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
# MAXDISKBLOCKS is measured in 2K blocks # MAXDISKBLOCKS is measured in 2K blocks
newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc` newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
add_mkisofs_opt $N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
# Only disk 1* bootable # Only disk 1* bootable
if [ $N != 1 ] ; then if [ $N != 1 ] ; then
exit 0 exit 0
fi fi
add_mkisofs_opt $N.mkisofs_opts "--chrp-boot" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--chrp-boot"
# For newworld Mac booting - Note, no spaces in volid! # For newworld Mac booting - Note, no spaces in volid!
add_mkisofs_opt $N.mkisofs_opts "-part" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-part"
add_mkisofs_opt $N.mkisofs_opts "-no-desktop" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-desktop"
add_mkisofs_opt $N.mkisofs_opts "-hfs-bless CD$N/install" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-bless CD$N/install"
add_mkisofs_opt $N.mkisofs_opts "-hfs-volid Debian/PowerPC_${CODENAME}" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-volid Debian/PowerPC_${CODENAME}"
cd $INSTALLDIR cd $INSTALLDIR
# Extract yaboot from the archive # Extract yaboot from the archive

View File

@ -25,7 +25,7 @@ CDDIR=$2
cd $CDDIR/.. cd $CDDIR/..
if [ $N != "1" ] && [ $N != "1_NONUS" ] ; then if [ $N != "1" ] && [ $N != "1_NONUS" ] ; then
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
exit 0 exit 0
fi fi
@ -91,5 +91,5 @@ cp $BASEDIR/data/$CODENAME/s390/d390* "$imagedir/"
cp $BASEDIR/data/$CODENAME/s390/README.boot "boot$N/" cp $BASEDIR/data/$CODENAME/s390/README.boot "boot$N/"
# Include the boot$N/-tree into the iso-image # Include the boot$N/-tree into the iso-image
add_mkisofs_opt $N.mkisofs_opts "-J" add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
add_mkisofs_opt $N.mkisofs_dirs "boot$N" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"

View File

@ -28,8 +28,8 @@ fi
install_languages $CDDIR install_languages $CDDIR
add_mkisofs_opt $N.mkisofs_opts "-G boot1/boot/isofs.b -B ..." add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-G boot1/boot/isofs.b -B ..."
add_mkisofs_opt $N.mkisofs_dirs "boot1" add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot1"
inst=boot1 inst=boot1