Checking in old changes used for the woody r2 images:

Cope with newer versions of silo in the mirror; use the oldest to make
sure it'll still work with woody

Complain and stop if we fail to find the cd.b or second.b boot files
This commit is contained in:
Steve McIntyre 2004-07-12 21:18:14 +00:00
parent 87b13e8e49
commit 9a9978fa73
1 changed files with 11 additions and 1 deletions

View File

@ -35,11 +35,21 @@ inst=boot1
# Setup directories
mkdir -p $inst/boot
silo_deb=`ls $MIRROR/pool/main/s/silo/silo_*.deb | tail -1`
silo_deb=`ls -t $MIRROR/pool/main/s/silo/silo_*.deb | tail -1`
# put the relevant parts of SILO boot loader
(ar p $silo_deb data.tar.gz | \
tar zxf - -C $inst/ ./boot/{cd,second}.b)
if [ ! -e $inst/boot/cd.b ] ; then
echo "no cd.b found! exiting"
exit 1
fi
if [ ! -e $inst/boot/second.b ] ; then
echo "no second.b found! exiting"
exit 1
fi
# Some custom etc files
cp -f -p $BASEDIR/data/sparc/etc/{debian.txt,silo.conf} \
$inst/boot/