Make the boot scripts more consistent in how they call add_mkisofs_opt
This commit is contained in:
parent
67d9909bbe
commit
4a2a622525
|
@ -85,17 +85,17 @@ EOF
|
|||
|
||||
mkdir -p boot$N/milo
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-l"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-alpha-boot boot/bootlx"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
|
||||
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
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-l"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-l"
|
||||
fi
|
||||
|
||||
#install_languages $CDDIR
|
||||
|
|
|
@ -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/initrd.gz $CDDIR/install.amd/
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-b isolinux/isolinux.bin"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-c isolinux/boot.cat"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-boot-load-size 4"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-boot-info-table"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
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"
|
||||
|
||||
syslinux_files () {
|
||||
type=$1
|
||||
|
@ -184,7 +184,6 @@ EOF
|
|||
EOF
|
||||
fi
|
||||
|
||||
# write final lines to mkisofs_opts
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
||||
|
||||
# th,th, thats all
|
||||
|
|
|
@ -31,7 +31,7 @@ fi
|
|||
|
||||
cd $CDDIR/..
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
|
||||
# Only disk 1* bootable
|
||||
if [ $N != 1 ] && [ $N != 1_NONUS ]; then
|
||||
|
|
|
@ -102,26 +102,26 @@ if [ "$NN" = "1" ]; then
|
|||
cp -lf cdrom/vmlinuz $CDDIR/install.386/
|
||||
cp -lf cdrom/initrd.gz $CDDIR/install.386/
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-b isolinux/isolinux.bin"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-c isolinux/boot.cat"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-boot-load-size 4"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-boot-info-table"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
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"
|
||||
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/
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.img"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.img"
|
||||
else
|
||||
mkdir boot$N
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-cache-inodes"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-cache-inodes"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -254,13 +254,12 @@ EOF
|
|||
EOF
|
||||
fi
|
||||
|
||||
# write final lines to mkisofs_opts
|
||||
if [ "$NN" = "1" ]; then
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
||||
else
|
||||
if [ -n "$THISTYPE" ]; then
|
||||
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog"
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ cd $CDDIR/..
|
|||
|
||||
# Only disc 1 bootable
|
||||
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;
|
||||
fi
|
||||
|
||||
|
@ -53,12 +53,12 @@ install_languages $CDDIR
|
|||
mkdir -p boot$N/boot
|
||||
cp -f boot.img boot$N/boot/
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-no-emul-boot"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-b boot/boot.img"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-c boot/boot.catalog"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-emul-boot"
|
||||
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 $N.mkisofs_dirs "boot$N"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
||||
|
||||
# done
|
||||
|
||||
|
|
|
@ -32,12 +32,12 @@ cd $CDDIR/..
|
|||
# Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
|
||||
# MAXDISKBLOCKS is measured in 2K blocks
|
||||
newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
|
||||
add_mkisofs_opt $N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_opts "--netatalk"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-hfs"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-probe"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
|
||||
|
||||
# Only disk 1 bootable
|
||||
if [ $N != 1 ]; then
|
||||
|
@ -90,9 +90,9 @@ cd $INSTALLDIR
|
|||
if [ -f tools/cdrom/bvme6000-boot.img.gz ]; then
|
||||
mkdir -p $CDDIR/boot1/boot
|
||||
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 $N.mkisofs_opts "-c boot/boot.catalog"
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot1"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-b boot/boot.bin"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-c boot/boot.catalog"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot1"
|
||||
fi
|
||||
|
||||
##-----------------------------< end of file >------------------------------##
|
||||
|
|
|
@ -24,7 +24,7 @@ if [ ! "$DI_DIST" ]; then
|
|||
DI_DIST="$DI_CODENAME"
|
||||
fi
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J"
|
||||
|
||||
# Only disk 1* bootable
|
||||
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
|
||||
|
||||
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
|
||||
#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
|
||||
|
|
|
@ -39,7 +39,7 @@ NN=`echo $N | sed -e 's/_NONUS//'`
|
|||
|
||||
cd $CDROOT/..
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J"
|
||||
|
||||
# Only disks 1 bootable
|
||||
if [ $NN != 1 ]; then
|
||||
|
@ -71,6 +71,6 @@ cp "$DI_DIR"/vmlinux-*-r4k-kn04 "$CDROOT/boot/vmlinux-r4k-kn04"
|
|||
|
||||
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
|
||||
|
|
|
@ -29,28 +29,28 @@ cd $CDDIR/..
|
|||
|
||||
install_languages $CDDIR
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "--iso-level 2"
|
||||
add_mkisofs_opt $N.mkisofs_opts "--netatalk"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-hfs"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-probe"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--iso-level 2"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
|
||||
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
|
||||
# MAXDISKBLOCKS is measured in 2K blocks
|
||||
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
|
||||
if [ $N != 1 ] ; then
|
||||
exit 0
|
||||
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!
|
||||
add_mkisofs_opt $N.mkisofs_opts "-part"
|
||||
add_mkisofs_opt $N.mkisofs_opts "-no-desktop"
|
||||
add_mkisofs_opt $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 "-part"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-no-desktop"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-bless CD$N/install"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-volid Debian/PowerPC_${CODENAME}"
|
||||
|
||||
cd $INSTALLDIR
|
||||
# Extract yaboot from the archive
|
||||
|
|
|
@ -25,7 +25,7 @@ CDDIR=$2
|
|||
cd $CDDIR/..
|
||||
|
||||
if [ $N != "1" ] && [ $N != "1_NONUS" ] ; then
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -91,5 +91,5 @@ cp $BASEDIR/data/$CODENAME/s390/d390* "$imagedir/"
|
|||
cp $BASEDIR/data/$CODENAME/s390/README.boot "boot$N/"
|
||||
|
||||
# Include the boot$N/-tree into the iso-image
|
||||
add_mkisofs_opt $N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot$N"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot$N"
|
||||
|
|
|
@ -28,8 +28,8 @@ fi
|
|||
|
||||
install_languages $CDDIR
|
||||
|
||||
add_mkisofs_opt $N.mkisofs_opts "-G boot1/boot/isofs.b -B ..."
|
||||
add_mkisofs_opt $N.mkisofs_dirs "boot1"
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-G boot1/boot/isofs.b -B ..."
|
||||
add_mkisofs_opt $CDDIR/../$N.mkisofs_dirs "boot1"
|
||||
|
||||
inst=boot1
|
||||
|
||||
|
|
Loading…
Reference in New Issue