Partial reversion, we can always simplify further later
This commit is contained in:
parent
cb5987f544
commit
7a414b8567
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -e
|
||||
#
|
||||
# boot-sparc lenny+
|
||||
# boot-sparc etch+
|
||||
#
|
||||
# Do install stuff for sparc, including making first CD bootable
|
||||
|
||||
|
@ -11,7 +11,7 @@ set -e
|
|||
N=$1
|
||||
CDDIR=$2
|
||||
if [ "$DI_WWW_HOME" = "default" ];then
|
||||
DI_WWW_HOME="http://people.debian.org/~stappers/d-i/images/daily"
|
||||
DI_WWW_HOME="http://people.debian.org/~stappers/d-i/images/daily/cdrom"
|
||||
if [ -n "$DI_DIR" ];then
|
||||
DI_DIR="$DI_DIR/~${DI_WWW_HOME#*~}"
|
||||
DI_WWW_HOME=""
|
||||
|
@ -45,38 +45,29 @@ silo_deb=$MIRROR/`zcat $MIRROR/dists/$DI_CODENAME/main/binary-sparc/Packages.gz
|
|||
tar zxf - -C $inst/ ./boot/{isofs,second}.b)
|
||||
|
||||
# Some custom etc files
|
||||
cp -f -p $BASEDIR/data/lenny/sparc/silo.conf $inst/boot/
|
||||
cat $BASEDIR/data/lenny/sparc/debian.txt \
|
||||
cp -f -p $BASEDIR/data/etch/sparc/silo.conf $inst/boot/
|
||||
cat $BASEDIR/data/etch/sparc/debian.txt \
|
||||
| sed "s/\${MEDIA_TYPE}/CDROM/" \
|
||||
| sed "s/\${DEBIAN_VERSION}/${CODENAME}/g" \
|
||||
| sed "s/\${BUILD_DATE}/${BUILD_DATE}/g" \
|
||||
> $inst/boot/debian.txt
|
||||
|
||||
BOOT_IMAGES="cdrom/initrd.gz cdrom/vmlinuz"
|
||||
|
||||
# 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/image
|
||||
s/$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
|
||||
|
||||
# Sparc64 kernel is so big, that uncompressing it corrupts SILO memory, so
|
||||
# uncompress it beforehand.
|
||||
# uncompress it before hand.
|
||||
|
||||
if [ ! "$DI_WWW_HOME" ];then
|
||||
if [ ! "$DI_DIR" ];then
|
||||
DI_DIR="$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images/cdrom"
|
||||
fi
|
||||
else
|
||||
DI_DIR="cdrom"
|
||||
mkdir "./$DI_DIR"
|
||||
wget "$DI_WWW_HOME" -O ./$DI_DIR/di.dir
|
||||
sparc64=$(sed -n 's/.*a href="\(vmlinuz-.*-sparc64\)".*/\1/p' ./$DI_DIR/di.dir)
|
||||
wget "$DI_WWW_HOME/$sparc64" -O ./$DI_DIR/vmlinuz-x-sparc64
|
||||
wget "$DI_WWW_HOME/initrd.gz" -O ./$DI_DIR/initrd.gz
|
||||
fi
|
||||
|
||||
cp "$DI_DIR"/initrd.gz "$inst/boot/initrd.gz"
|
||||
zcat "$DI_DIR"/vmlinuz > "$inst/boot/sparc64"
|
||||
#cp "$DI_DIR"/vmlinuz-*-sparc32 "$inst/boot/sparc32"
|
||||
zcat "$DI_DIR"/vmlinuz-*-sparc64 > "$inst/boot/sparc64"
|
||||
|
|
Loading…
Reference in New Issue