* Added set -e for shell scripts.

* Now generate *.list for Pseudo Image Kit.
* Added files for woody.
* Updated the README* files.
* Added some .cvsignore files.
This commit is contained in:
Raphaël Hertzog 2000-02-19 17:52:52 +00:00
parent 831b19816a
commit 1f41fe62d6
22 changed files with 696 additions and 5 deletions

2
.cvsignore Normal file
View File

@ -0,0 +1,2 @@
install-stamp
build-stamp

View File

@ -465,6 +465,9 @@ bin-images: ok bin-md5list $(OUT)
rm -f $(OUT)/$(CODENAME)-$(ARCH)-$$n.raw; \ rm -f $(OUT)/$(CODENAME)-$(ARCH)-$$n.raw; \
$(MKISOFS) $(MKISOFS_OPTS) -V "$$volid" \ $(MKISOFS) $(MKISOFS_OPTS) -V "$$volid" \
-o $(OUT)/$(CODENAME)-$(ARCH)-$$n.raw $$opts $$n ; \ -o $(OUT)/$(CODENAME)-$(ARCH)-$$n.raw $$opts $$n ; \
$(BASEDIR)/tools/pi-makelist \
$(OUT)/$(CODENAME)-$(ARCH)-$$n.raw > \
$(OUT)/$(CODENAME)-$(ARCH)-$$n.list; \
done done
src-images: ok src-md5list $(OUT) src-images: ok src-md5list $(OUT)
@echo "Generating the source iso images ..." @echo "Generating the source iso images ..."
@ -477,6 +480,9 @@ src-images: ok src-md5list $(OUT)
rm -f $(OUT)/$(CODENAME)-src-$$n.raw; \ rm -f $(OUT)/$(CODENAME)-src-$$n.raw; \
$(MKISOFS) $(MKISOFS_OPTS) -V "$$volid" \ $(MKISOFS) $(MKISOFS_OPTS) -V "$$volid" \
-o $(OUT)/$(CODENAME)-src-$$n.raw $$opts $$n ; \ -o $(OUT)/$(CODENAME)-src-$$n.raw $$opts $$n ; \
$(BASEDIR)/tools/pi-makelist \
$(OUT)/$(CODENAME)-src-$$n.raw > \
$(OUT)/$(CODENAME)-src-$$n.list; \
done done

7
README
View File

@ -1,5 +1,6 @@
YACS - Yet Another CD Script :-) YACS - Yet Another CD Script :-)
================================ ================================
(better known as debian-cd)
Copyright 1999 Raphaël Hertzog <hertzog@debian.org> Copyright 1999 Raphaël Hertzog <hertzog@debian.org>
This set of tools is licensed under the General Public License This set of tools is licensed under the General Public License
@ -9,6 +10,8 @@ version 2 or any later version. You can find it in
Thanks to Steve McIntyre <stevem@chiark.greenend.org.uk> for his Thanks to Steve McIntyre <stevem@chiark.greenend.org.uk> for his
work on slink_cd/debian_cd. Some ideas come from his script. work on slink_cd/debian_cd. Some ideas come from his script.
Thanks to all the contributors on the debian-cd mailing list.
What is needed ? What is needed ?
================ ================
Software : Software :
@ -149,6 +152,10 @@ The process of building a CD is decomposed as follow :
$ make bin-images $ make bin-images
And "make src-images" will generate the sources images. And "make src-images" will generate the sources images.
- if you want to generate a MD5SUMS file with the md5sums of the
images you can do it with :
$ make imagesums
About the hook system About the hook system
===================== =====================

View File

@ -1,5 +1,25 @@
README for those who want to hack on yacs README for those who want to hack on yacs/debian-cd
----------------------------------------- ---------------------------------------------------
Organisation :
--------------
The main source is in the Debian CVS. If you want to hack on debian-cd
and if you want to send me patches, please work on the latest version
available in the CVS.
http://cvs.debian.org/debian-cd/
$ export CVSROOT=anonymous@cvs.debian.org:/cvs/debian-boot
$ cvs co debian-cd
If you want to discuss anything related to the debian-cd development, you
can contact me directly or, better, you can mail the
debian-cd@lists.debian.org mailing list where all people interested in the
debian-cd development are subscribed.
Technical details :
-------------------
The Makefile which is the main directory will be used to launch The Makefile which is the main directory will be used to launch
each step of the install process. Try to comment each target of each step of the install process. Try to comment each target of

View File

@ -0,0 +1,7 @@
Multi CD installation for Debian 2.2
You must use apt-cdrom ...
EXPLAIN WHAT'S NEEDED HERE
...

4
debian/.cvsignore vendored Normal file
View File

@ -0,0 +1,4 @@
debian-cd
files
postinst.debhelper
prerm.debhelper

11
debian/changelog vendored
View File

@ -1,5 +1,6 @@
debian-cd (2.1.92) unstable; urgency=low debian-cd (2.1.92) frozen unstable; urgency=low
* Added files for woody (yes, people already burn woody CD images)
* Make the second CD bootable on i386 with the "compact" image. * Make the second CD bootable on i386 with the "compact" image.
* Changes to installtools.sh, change to check for documentation * Changes to installtools.sh, change to check for documentation
directory name by $ARCH. directory name by $ARCH.
@ -15,8 +16,14 @@ debian-cd (2.1.92) unstable; urgency=low
usefulness (results given by the popularity contest of course). This usefulness (results given by the popularity contest of course). This
file is included at the end of the Debian_potato task in order to file is included at the end of the Debian_potato task in order to
include the packages that are widely used on the first CD if possible. include the packages that are widely used on the first CD if possible.
* Added a bunch of set -e.
* Added pi-makelist to generate the *.list files used by the Pseudo
Image Kit.
* Updated README and README.devel. Explained that the main source
is on CVS and that patch should apply on the CVS tree not on the
source package available on the Debian FTP.
-- Raphael Hertzog <hertzog@debian.org> Tue, 28 Dec 1999 00:03:18 +0100 -- Raphael Hertzog <hertzog@debian.org> Sat, 19 Feb 2000 18:32:22 +0100
debian-cd (2.1.91) unstable; urgency=low debian-cd (2.1.91) unstable; urgency=low

61
tasks/Debian_woody Normal file
View File

@ -0,0 +1,61 @@
/* Comment
*
* This file will be used to build official complete set of Potato CD
*
*/
/* The potato CD set does now use empty package called task-*
to select the packages in the initial installation */
task-dialup
task-dialup-isdn
task-newbie-help
task-gnome-desktop
task-gnome-games
task-gnome-net
task-gnome-apps
task-sgml
task-tex
task-samba
task-games
task-laptop
task-devel-common
task-c-dev
task-c++-dev
task-debug
task-sgml-dev
task-tcltk
task-fortran
task-objc-dev
task-database-pg
task-news-server
task-x-window-system-core
task-x-window-system
task-dns-server
task-imap
task-science
task-python
task-python-dev
task-python-bundle
task-python-web
task-tcltk-dev
task-parallel-computing-node
task-parallel-computing-dev
/* Well I don't know if task for specific countries should be included
on the first CD ...
I'll leave it there for now ..
*/
task-german
task-spanish
task-chinese-s
task-chinese-t
task-japanese
task-polish
/* List of packages that may still fit on the first CD */
#include <popularity-contest>
/* Other packages to put on the others CDs */

View File

@ -3,6 +3,8 @@
# This is a little shell script that will launch apt-get in dry-run mode # This is a little shell script that will launch apt-get in dry-run mode
# to find all the dependencies of a specific package # to find all the dependencies of a specific package
set -e
# Get the configuration information if necessary # Get the configuration information if necessary
if [ -z "$TDIR" -o -z "$CODENAME" -o -z "$ARCH" ]; then if [ -z "$TDIR" -o -z "$CODENAME" -o -z "$ARCH" ]; then
if [ -e CONF.sh ]; then if [ -e CONF.sh ]; then

View File

@ -9,6 +9,8 @@
# Do install stuff for alpha, including making bootable CDs # Do install stuff for alpha, including making bootable CDs
# #
set -e
N=$1 N=$1
CDDIR=$2 CDDIR=$2

View File

@ -12,6 +12,8 @@
# $1 is the CD number # $1 is the CD number
# $2 is the temporary CD build dir # $2 is the temporary CD build dir
set -e
N=$1 N=$1
CDDIR=$2 CDDIR=$2
BOOTDIR= BOOTDIR=

View File

@ -38,6 +38,8 @@
# The first two items are in a tar file at master.debian.org:~lawrencc, along # The first two items are in a tar file at master.debian.org:~lawrencc, along
# with a silly rsync script that will accomplish the last item. # with a silly rsync script that will accomplish the last item.
set -e
N=$1 N=$1
CDDIR=$2 CDDIR=$2

View File

@ -12,6 +12,8 @@
# $1 is the CD number # $1 is the CD number
# $2 is the temporary CD build dir # $2 is the temporary CD build dir
set -e
N=$1 N=$1
CDROOT=$2 CDROOT=$2

View File

@ -9,6 +9,8 @@
# #
# Do install stuff for sparc, including making bootable CDs # Do install stuff for sparc, including making bootable CDs
set -e
N=$1 N=$1
CDDIR=$2 CDDIR=$2

72
tools/boot/woody/boot-alpha Executable file
View File

@ -0,0 +1,72 @@
#!/bin/bash
#
# boot-alpha v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>
# and Loic Prylli <Loic.Prylli@ens-lyon.fr>
# Released under GPL 31 Mar 1999
# See the file COPYING for license details
# Released as part of the slink_cd package, not much use standalone
#
# Do install stuff for alpha, including making bootable CDs
#
set -e
N=$1
CDDIR=$2
cd $CDDIR/..
# Only disc 1 bootable
if [ $N != 1 ]; then
echo "-J" > $N.mkisofs_opts
exit 0;
fi
# Hack for bootable disks
mkdir -p boot1/boot
echo -n "-J boot1" > 1.mkisofs_opts
echo "extract aboot(bootlx) from sable set"
echo dump srmbootcode boot1/boot/bootlx |\
debugfs $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/sable/resc1440.bin
for subarch in avanti avanti-s xl xlt cabriolet eb66 eb66p eb64p eb164 pc164 \
lx164 sx164 jensen noname takara mikasa mikasa-p noritake noritake-p alcor miata \
sable sable-g book1 ruffian; do
mkdir boot1/boot/$subarch
echo "drive m: file=\"$CDDIR/dists/stable/main/disks-$ARCH/current/$subarch/resc1440.bin\"" > mtoolsrc.tmp
echo "extracting stuff for $subarch"
case $subarch in
jensen|noritake*|mikasa-p|sable*|book1|miata-s|avanti-s|generic)
echo dump linux boot1/boot/$subarch/linux |\
debugfs $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/$subarch/resc1440.bin
;;
ruffian)
MTOOLSRC=$CDDIR/../mtoolsrc.tmp mcopy m:linux m:milo m:ldmilo.exe boot1/boot/$subarch/.
;;
*)
MTOOLSRC=$CDDIR/../mtoolsrc.tmp mcopy m:linux m:milo m:linload.exe boot1/boot/$subarch/.
;;
esac
done
mkdir $CDDIR/tools/rawrite1
(cd $CDDIR/tools/rawrite1; \
unzip -Lq $MIRROR/tools/rawrite1.zip )
mkdir $CDDIR/tools/rawrite2
(cd $CDDIR/tools/rawrite2; \
unzip -Lq $MIRROR/tools/rawrite2.zip; \
rm rawrite2.c )
(echo "Tools for DOS :" ; \
echo "rawrite1/ rawrite 1.3 : create disks from disk images (*.bin)"; \
echo "rawrite2/ rawrite 2.0 : create disks from disk images (*.bin)"; \
echo " rawrite 2.0 is much faster, but it locks up on some machines";\
) |todos > $CDDIR/tools/README.tools
cp $CDDIR/tools/rawrite1/rawrite3.com $CDDIR/install/rw1_3.com
cp $CDDIR/tools/rawrite2/rawrite2.exe $CDDIR/install/rw2_0.exe
exit 0

95
tools/boot/woody/boot-i386 Executable file
View File

@ -0,0 +1,95 @@
#!/bin/bash
#
# boot-i386 v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>
# Released under GPL 31 Mar 1999
# 06-10-99 jjw Added $CODENAME and $CODENAME_STATUS support
#
# Heavily hacked by Raphaël Hertzog <hertzog@debian.org> for
# YACS (the new debian-cd in potato)
#
# Do install stuff for i386, including making bootable CDs
#
# $1 is the CD number
# $2 is the temporary CD build dir
set -e
N=$1
CDDIR=$2
BOOTDIR=
cd $CDDIR/..
# Compact image for disk 2
if [ $N == 2 ]; then
:> 2.mkisofs_opts
if [ -e 1/dists/$CODENAME/main/disks-$ARCH/current/disks-2.88/compact/rescue.bin ]
then
mkdir -p boot2/boot
cp 1/dists/$CODENAME/main/disks-$ARCH/current/disks-2.88/compact/rescue.bin boot2/boot/
echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot2" \
> 2.mkisofs_opts
fi
exit 0;
fi
# Disks != 1 and not 2
if [ $N != 1 ]; then
echo -n "-J" > $N.mkisofs_opts
exit 0;
fi
# Now we do disk 1 ...
# couple of changes for 2.2.x bootdisks 27-dec-99 -- jwest
echo -n "-J -b boot/rescue.bin -c boot/boot.catalog boot1" > 1.mkisofs_opts
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
cp disks-2.88/resc*.bin $CDDIR/install ; \
cp linux $CDDIR/install ; \
cp disks-1.44/root.bin $CDDIR/install )
mkdir -p boot1/boot
cp $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/disks-2.88/rescue.bin boot1/boot
#Extracting tools for disc 1
mkdir -p $CDDIR/tools/fips20
(cd $CDDIR/tools/fips20; \
unzip -Lq $MIRROR/tools/fips20.zip >/dev/null; \
rm restorrb source -rf)
(cd $CDDIR/tools; \
unzip -Lq $MIRROR/tools/lodlin16.zip >/dev/null; \
rm lodlin16/src lodlin16/initrd loadlin16/debian -rf )
mkdir $CDDIR/tools/rawrite1
(cd $CDDIR/tools/rawrite1; \
unzip -Lq $MIRROR/tools/rawrite1.zip >/dev/null)
mkdir $CDDIR/tools/rawrite2
(cd $CDDIR/tools/rawrite2; \
unzip -Lq $MIRROR/tools/rawrite2.zip >/dev/null; \
rm rawrite2.c )
(echo "Tools for DOS :" ; \
echo "fips20/ non-destructively shorten a FAT partition" ; \
echo "lodlin16/ load Linux kernel from DOS" ;\
echo "rawrite1/ rawrite 1.3 : create disks from disk images (*.bin)"; \
echo "rawrite2/ rawrite 2.0 : create disks from disk images (*.bin)"; \
echo " rawrite 2.0 is much faster, but it locks up on some machines";\
) |todos > $CDDIR/tools/README.tools
cp $CDDIR/tools/lodlin16/*.exe $CDDIR/install
cp $CDDIR/tools/rawrite1/rawrite3.com $CDDIR/install/rw1_3.com
cp $CDDIR/tools/rawrite2/rawrite2.exe $CDDIR/install/rw2_0.exe
cp $CDDIR/tools/fips*/*.exe $CDDIR/install
(echo "@ echo off" ; \
echo "rem Flush any write-cached disk blocks before we leave DOS. " ; \
echo "smartdrv /c" ; \
echo "loadlin.exe linux root=/dev/ram ro initrd=root.bin" ; \
) |todos > $CDDIR/install/boot.bat

184
tools/boot/woody/boot-m68k Executable file
View File

@ -0,0 +1,184 @@
#!/bin/bash
#
# boot-m68k v 1.13 (c) Steve McIntyre <stevem@chiark.greenend.org.uk>,
# Chris Lawrence <lawrencc@debian.org>, Christian Steigies <cts@debian.org>,
# Michael Schmitz <MSchmitz@lbl.gov>
# Released under GPL 31 Mar 1999
# See the file COPYING for license details
# Released as part of the slink_cd package, not much use standalone
#
# Do install stuff for m68k, including making bootable CDs
#
# Enjoy! This is all completely free.
# - Chris Lawrence <lawrencc@debian.org>
#
# Rewritten by Steve McIntyre <stevem@chiark.greenend.org.uk> in sh to
# interface better with the slink_cd package and cope with the mirror
# layout, 28 Feb 1999.
# Hopefully this will do the same job as the python map stuff did, it
# appears to...
#
# If you're burning a CD, use the mkhybrid in potato (HFS is broken in the
# slink version of mkhybrid; at least it is for me). Please don't use Joliet
# extensions; some Mac kernels have apparently been known to choke on them
# (and you really shouldn't be supporting a Microsoft Standard anyway :-)
#
# You may also want the following:
# * A copy of the Linux/m68k FAQ
# * A copy of my m68k-specific README and m68k-tools directories
# * The m68k kernel sources from sunsite.auc.dk:/projects/680x0
# (Sunsite-Denmark is rsync-capable at sunsite.auc.dk::ftp)
# I recommend getting the 2.0.36 and 2.2.1-pre2 sources at least.
# (Actually 2.0.36 is non-essential since it's on the CDs already;
# you probably DO want the 2.2.1-pre2 tree however [under v2.1!]).
#
# MVME/BVME users will love you if you also include the "tools" directory
# from the FTP site, since they may want/need rawwrite for MS-DOS.
#
# The first two items are in a tar file at master.debian.org:~lawrencc, along
# with a silly rsync script that will accomplish the last item.
set -e
N=$1
CDDIR=$2
cd $CDDIR/..
# Only disk 1 bootable
if [ $N != 1 ]; then
echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
> $N.mkisofs_opts
exit 0
fi
echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
> $N.mkisofs_opts
echo -n " -b install/bvme6000/resc1440.bin -c install/bvme6000/boot.catalog" \
>> $N.mkisofs_opts
DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current"
INSTALLDIR="$CDDIR/install"
cd $INSTALLDIR
#vecho Installing Amiga files
lha xqf $DISKSROOT/amiga/amigainstall.lha
mv debian amiga
mv debian.info amiga.info
cp $DISKSROOT/amiga/* amiga
# Needs to be executable
chmod a+x amiga/amiboot-5.6
# Add .info files for amiga
tar -C .. -xzf $BASEDIR/data/cts_amiga_info.tar.gz
for file in `tar tzf $BASEDIR/data/cts_amiga_info.tar.gz`
do
chmod a+r ../$file
done
# And fix a few things up...
mkdir common
mv basecont.txt.info common
mv ../README.info ../README.m68k.info
cp ../README.1ST.info ../README.multicd.info
#vecho Installing Atari files
lha xqf $DISKSROOT/atari/install.lzh
mv debian atari
cp $DISKSROOT/atari/* atari
#vecho Installing Mac files
tar -C .. -zxf $DISKSROOT/source/macinstall.tar.gz
cp $DISKSROOT/mac/* mac
for TYPE in common bvme6000 mvme162 mvme167 source
do
#vecho Installing $TYPE files
if [ ! -d $TYPE ] ; then
mkdir $TYPE
fi
cp $DISKSROOT/$TYPE/* $TYPE
done
vecho hexbin Mac files
cd $INSTALLDIR/mac
hexbin *.hqx
vecho Installing m68k FAQ and tools
mkdir $CDDIR/tmp
cd $CDDIR/tmp
tar xzf $BASEDIR/data/m68k-cd-misc.tar.gz
mv m68k-faq m68k-tools ..
mv update-kernels ../update-kernels.m68k
cd ..
rm -rf tmp
cd $CDDIR
# make mountpoint and temp HFS filesystem image
rm -rf /var/tmp/mnt-macinstall
mkdir /var/tmp/mnt-macinstall
dd if=/dev/zero of=/var/tmp/macinstall-temp.img bs=1024 count=1440
hformat /var/tmp/macinstall-temp.img
# mount it (':' is top dir) using hfsutils
hmount /var/tmp/macinstall-temp.img
# copy booter and preferences files in place (color table missing but
# Penguin-17 has colors fixed anyway
hcopy -b install/mac/Penguin-17.hqx :
hcopy -b install/mac/Penguin_Prefs.hqx :"Penguin Prefs"
hcopy -b "install/mac/Penguin_Prefs_(autoboot).hqx" :"Penguin Prefs (autoboot)"
# unmount HFS image
humount /var/tmp/macinstall-temp.img
# mount this HFS floppy image again as netatalk using the loopback mount command
if [ ! 'mount -t hfs -o loop,fork=netatalk,afpd /var/tmp/macinstall-temp.img /var/tmp/mnt-macinstall' ] ; then
# We managed to mount it loop-back
# copy over both Penguin-15 and .AppleDouble/Penguin-15
# copy over both Penguin Prefs and .AppleDouble/Penguin Prefs
# (.AppleDouble files go into .AppleDouble subdir of target dir)
cp /var/tmp/mnt-macinstall/Penguin* install/mac/
mkdir install/mac/.AppleDouble
cp /var/tmp/mnt-macinstall/.AppleDouble/Penguin* install/mac/.AppleDouble/
# unmount, cleanup
umount /var/tmp/mnt-macinstall
rm /var/tmp/macinstall-temp.img
rmdir /var/tmp/mnt-macinstall
else
# We failed to mount it. Use the fallback tar.gz that we have
echo HFS loopback mount failed on /var/tmp/macinstall-temp.img
echo This is not fatal, but check that you have permissions to do this
echo and that you have HFS support in your kernel...
echo Extracting $BASEDIR/data/macinstall-cd.tar.gz instead.
tar xzf $BASEDIR/data/macinstall-cd.tar.gz
fi
#
# can remove the .hqx stuff now I guess.
#
# make CD image using the command
# mkhybrid -map <mapfile> --netatalk -a -j -hfs -r -V <label> -o <image> <source dir>
#
# map file contains stuff like
# # ext. xlate creator type comment
# .hqx Ascii 'BnHx' 'TEXT' "BinHex file"
# .mov Raw 'TVOD' 'MooV' "QuickTime Movie"
# .deb Raw 'Debn' 'bina' "Debian package"
# .bin Raw 'Debn' 'bina' "Floppy or ramdisk image"
# * Ascii 'ttxt' 'TEXT' "Text file"
#
# Note that we can't use MacBinary mapping for .bin files due to
# name clashes with the binary image files, so we have to provide
# all encoded Mac files in BinHex format.
#
# Kudos Brad Midgley, <brad@pht.com> for the tricks!
#
# Possible alternative: convert .hqx in MacBinary files, but we'd need
# to use a different extension as .bin is taken by the disk images.
# i.e. hexbin -s Penguin-17.hqx > Penguin-17.mac
# and use .mac as MacBinary extension. I don't know offhand what the
# creator/type for MacBinary is. --netatalk would be replaced by
# --macbin, possibly together with --probe.

100
tools/boot/woody/boot-powerpc Executable file
View File

@ -0,0 +1,100 @@
#!/bin/bash
#
# boot-powerpc version 0.6 (c) Hartmut Koptein <koptein@debian.org>,
# PReP support (C) Matt Porter <porter@debian.org>
#
# Released under GPL 1 Mar 1999
# See the file COPYING for license details
# Released as part of the debian_cd package, not much use standalone
#
# Do install stuff for powerpc, including making bootable CDs
#
# $1 is the CD number
# $2 is the temporary CD build dir
set -e
N=$1
CDROOT=$2
cd $CDROOT/..
# Only disk 1 bootable
if [ $N != 1 ]; then
echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
> $N.mkisofs_opts
exit 0
fi
echo -n "--netatalk -j -hfs -probe -map $BASEDIR/data/hfs.map" \
> $N.mkisofs_opts
echo -n " -prep-boot install/prep/boot.bin" >> $N.mkisofs_opts
DISKSROOT="$MIRROR/dists/$CODENAME/main/disks-$ARCH/current"
INSTALLDIR="$CDROOT/install"
cd $INSTALLDIR
# Debian/PowerPC consits currently for three parts: CHRP, PMac and PReP
# Apus, MBX and BBox will hopefully follow
#
#
# -- We need a generic boot-loader --
#
echo "Copying boot images to $CDROOT/install/boot for disc 1"
rm -fr boot
mkdir -p boot
for subarch in chrp powermac prep ; do
mkdir boot/$subarch
echo "extracting stuff for $subarch"
case $subarch in
chrp)
echo "need work for CHRP"
;;
powermac)
#cp -p $BOOTDIR/cd.b $BOOTDIR/second.b boot/powermac
#cp -p $BOOTDIR/second.b boot/powermac
#cat - > boot/powermac/quik.conf << __EOF__
#timeout=300
#root=/dev/ram
#image=!cd1
#label=Linux
#initrd=!cd5
#__EOF__
echo "need work for PowerMac"
;;
prep)
# PReP doesn't need an extra copy of the boot image
# The -B parameter to mkhybrid points directly to our
# PReP bootable image in /install/prep/boot.bin
# We put a symlink here for now for uniformity.
ln -s ../../prep/boot.bin boot/prep/
;;
esac
done
cd $INSTALLDIR
#-------------- CHRP - Stuff -------------------------------
echo Installing CHRP files
mkdir chrp
cp $DISKSROOT/chrp/* chrp
#-------------- PMac - Stuff -------------------------------
echo Installing Power-Macintosh files
mkdir powermac
cp $DISKSROOT/powermac/* powermac
#-------------- PReP - Stuff -------------------------------
echo Installing PReP files
mkdir prep
cp $DISKSROOT/prep/* prep
#============== fix a few things up... =====================
echo Installing PowerPC FAQ and tools
mkdir common
#mv basecont.txt.info common
#mv ../README.info ../README.powerpc.info
#cp ../README.1ST.info ../README.multicd.info

77
tools/boot/woody/boot-sparc Executable file
View File

@ -0,0 +1,77 @@
#!/bin/bash
#
# boot-sparc v 1.13 (c) Steve Dunham <dunham@cse.msu.edu>, Eric
# Delaunay <delaunay@lix.polytechnique.fr>, Steve McIntyre
# <stevem@chiark.greenend.org.uk>
# Released under GPL 31 Mar 1999
# See the file COPYING for license details
# Released as part of the slink_cd package, not much use standalone
#
# Do install stuff for sparc, including making bootable CDs
set -e
N=$1
CDDIR=$2
cd $CDDIR/..
# Disk 1 only
if [ $N != 1 ]; then
:> $N.mkisofs_opts
exit 0;
fi
echo -n "boot1" > $N.mkisofs_opts
rm -fr boot1
# temporary mount point (eg. for silo to create the bootable CD image)
# only needed for Sparc so far...
#vecho Checking for temporary mount point for SILO
mountpoint=/var/tmp/debian_cd.mnt
if [ -d $mountpoint ]; then
umount $mountpoint || true
else
mkdir -p $mountpoint
fi
# put the relevant parts of SILO boot loader
mkdir -p boot1/boot
cp -p $BOOTDIR/cd.b $BOOTDIR/second.b boot1/boot
cat - > boot1/boot/silo.conf << __EOF__
message=!cd1
timeout=300
root=/dev/ram
image[sun4c,sun4d,sun4m]=!cd2
label=linux
initrd=!cd5
image[sun4u]=!cd4
label=linux
initrd=!cd5
image[sun4c,sun4d,sun4m]=!cd3
label=linux-2.2
initrd=!cd5
image[sun4u]=!cd4
label=linux-2.2
initrd=!cd5
__EOF__
# linux kernel & co are fetched directly from the install dir
# ... put the message banner in boot/debian.txt
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
cp -p linux-a.out linux-2.2.1-sun4u-a.out \
linux-2.2.1-a.out root.bin sparc_release_note.txt \
$CDDIR/install )
#echo mount -r -o loop \
# $MIRROR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin \
# $mountpoint
mount -r -o loop \
$MIRROR/dists/$CODENAME/main/disks-$ARCH/current/resc1440.bin \
$mountpoint
cp -p $mountpoint/debian.txt boot1/boot/debian.txt
umount $mountpoint

View File

@ -6,7 +6,7 @@
# This script will create the Sources.gz files # This script will create the Sources.gz files
# First arg = directory of the CD # First arg = directory of the CD
#set -e set -e
PREFIX=$1 PREFIX=$1
if [ -n "$NONFREE" ]; then if [ -n "$NONFREE" ]; then

31
tools/woody/installtools.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# Install files in /install and some in /doc
# 26-dec-99 changes for i386 (2.2.x) bootdisks --jwest
set -e
BDIR=$TDIR/$CODENAME-$ARCH
if [ "$ARCH" = "powerpc" ]; then
DOCDIR="docs"
elif [ "$ARCH" = "i386" ] ; then
DOCDIR="doc"
else
DOCDIR="documentation"
fi
# Put the install documentation in /install
cd $BDIR/1/dists/$CODENAME/main/disks-$ARCH/current/$DOCDIR
mkdir $BDIR/1/install/$DOCDIR
cp *.{html,txt} $BDIR/1/install/$DOCDIR/
ln -sf install*.html $BDIR/1/install/$DOCDIR/index.html
# Put the boot-disk documentation in /doc too
mkdir $BDIR/1/doc/install
cd $BDIR/1/doc/install
for file in ../../install/$DOCDIR/*.{html,txt}
do
ln -s $file
done

6
tools/woody/upgrade.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# FOR WOODY
# Include upgrade* dir when available
exit 0