2007-04-10 23:21:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# boot-mipsel - (C) 2002 by Karsten Merker <merker@debian.org>
|
|
|
|
#
|
|
|
|
# You may copy, modify and distribute this under the terms of the GNU
|
|
|
|
# General Public License as published by the Free Software Foundation;
|
|
|
|
# either version 2 of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# $1 is the CD number
|
|
|
|
# $2 is the temporary CD build dir
|
|
|
|
|
|
|
|
. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
N=$1
|
|
|
|
CDROOT=$2
|
|
|
|
if [ "$DI_WWW_HOME" = "default" ];then
|
2008-03-31 13:04:42 +00:00
|
|
|
# Temporarily disabled to stop cron jobs complaining
|
|
|
|
# DI_WWW_HOME="http://people.debian.org/~ths/d-i/mipsel/images/daily/decstation/cdrom/"
|
2007-04-10 23:21:31 +00:00
|
|
|
if [ -n "$DI_DIR" ];then
|
|
|
|
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
|
|
|
DI_WWW_HOME=""
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ ! "$DI_DIST" ]; then
|
|
|
|
DI_DIST="$DI_CODENAME"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# 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//'`
|
|
|
|
|
|
|
|
cd $CDROOT/..
|
|
|
|
|
2008-09-08 21:53:45 +00:00
|
|
|
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-J -joliet-long"
|
2007-04-10 23:21:31 +00:00
|
|
|
|
2008-03-31 13:04:42 +00:00
|
|
|
# Mipsel is currently not bootable in lenny, so bail out here
|
|
|
|
echo "Mipsel booting disabled, check with Sledge or fjp"
|
|
|
|
exit 0
|
|
|
|
|
2007-04-10 23:21:31 +00:00
|
|
|
# Only disks 1 bootable
|
|
|
|
if [ $NN != 1 ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
DELODEB="$($BASEDIR/tools/apt-selection cache show delo | \
|
|
|
|
sed -n 's/^Filename: \(.*_mipsel.deb\)$/\1/p')"
|
|
|
|
ar p "${MIRROR}/${DELODEB}" data.tar.gz | tar xz ./boot/delo.2nd
|
|
|
|
mkdir -p $CDROOT/boot
|
|
|
|
mv boot/delo.2nd $CDROOT/boot/delo.2nd
|
|
|
|
|
2007-07-26 08:18:52 +00:00
|
|
|
install -m 644 -D $BASEDIR/data/lenny/delo.conf "$CDROOT"/etc/delo.conf
|
2007-04-10 23:21:31 +00:00
|
|
|
|
|
|
|
if [ ! "$DI_WWW_HOME" ];then
|
|
|
|
if [ ! "$DI_DIR" ];then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/decstation/cdrom/"
|
|
|
|
if [ ! -e $DI_DIR ] ; then
|
|
|
|
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom/"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
DI_DIR="."
|
|
|
|
wget "$DI_WWW_HOME" -O di.dir
|
2007-12-11 23:45:02 -01:00
|
|
|
r3k=$(sed -n 's/.*a href="\(vmlinux-.*-r3k-kn02\)".*/\1/ip' di.dir)
|
|
|
|
r4k=$(sed -n 's/.*a href="\(vmlinux-.*-r4k-kn04\)".*/\1/ip' di.dir)
|
2007-04-10 23:21:31 +00:00
|
|
|
wget "$DI_WWW_HOME/$r3k" -O vmlinux-x-r3k-kn02
|
|
|
|
wget "$DI_WWW_HOME/$r4k" -O vmlinux-x-r4k-kn04
|
|
|
|
wget "$DI_WWW_HOME/initrd.gz"
|
|
|
|
fi
|
|
|
|
cp "$DI_DIR"/initrd.gz "$CDROOT/boot/initrd.gz"
|
|
|
|
cp "$DI_DIR"/vmlinux-*-r3k-kn02 "$CDROOT/boot/vmlinux-r3k-kn02"
|
|
|
|
cp "$DI_DIR"/vmlinux-*-r4k-kn04 "$CDROOT/boot/vmlinux-r4k-kn04"
|
|
|
|
|
|
|
|
install_languages $CDROOT
|
|
|
|
|
|
|
|
add_mkisofs_opt $CDROOT/../$N.mkisofs_opts "-mipsel-boot boot/delo.2nd"
|
|
|
|
|
|
|
|
exit 0
|