apt-select: if no NONFREE, then only do main/contrib

boot-sparc: fixups for new CD layout
This commit is contained in:
Ben Collins 2000-03-09 21:06:03 +00:00
parent 6bdd35ca98
commit 734ad566dd
2 changed files with 53 additions and 42 deletions

View File

@ -27,6 +27,12 @@ options=" -o Dir::State::status=$TDIR/$CODENAME-$ARCH/status \
-o Dir::Etc=$TDIR/$CODENAME-$ARCH/apt/ \ -o Dir::Etc=$TDIR/$CODENAME-$ARCH/apt/ \
-o APT::Architecture=$ARCH " -o APT::Architecture=$ARCH "
if [ -n "$NONFREE" ]; then
sections="main contrib non-free"
else
sections="main contrib"
fi
# Check for the necessary dirs and files ... # Check for the necessary dirs and files ...
if [ ! -d "$TDIR/$CODENAME-$ARCH/apt-state/lists/partial" ]; then if [ ! -d "$TDIR/$CODENAME-$ARCH/apt-state/lists/partial" ]; then
mkdir -p "$TDIR/$CODENAME-$ARCH/apt-state/lists/partial" mkdir -p "$TDIR/$CODENAME-$ARCH/apt-state/lists/partial"
@ -39,7 +45,7 @@ if [ ! -d "$TDIR/$CODENAME-$ARCH/apt" ]; then
fi fi
if [ ! -e "$TDIR/$CODENAME-$ARCH/apt/sources.list" ]; then if [ ! -e "$TDIR/$CODENAME-$ARCH/apt/sources.list" ]; then
# Generating a correct sources.list file # Generating a correct sources.list file
echo "deb file:$MIRROR $CODENAME main contrib non-free" \ echo "deb file:$MIRROR $CODENAME $sections" \
> $TDIR/$CODENAME-$ARCH/apt/sources.list > $TDIR/$CODENAME-$ARCH/apt/sources.list
if [ -n "$NONUS" ]; then if [ -n "$NONUS" ]; then
# Slink used the old paths # Slink used the old paths
@ -47,7 +53,7 @@ if [ ! -e "$TDIR/$CODENAME-$ARCH/apt/sources.list" ]; then
echo "deb file:$NONUS $CODENAME non-US" \ echo "deb file:$NONUS $CODENAME non-US" \
>> $TDIR/$CODENAME-$ARCH/apt/sources.list >> $TDIR/$CODENAME-$ARCH/apt/sources.list
else else
echo "deb file:$NONUS $CODENAME/non-US main contrib non-free" \ echo "deb file:$NONUS $CODENAME/non-US $sections" \
>> $TDIR/$CODENAME-$ARCH/apt/sources.list >> $TDIR/$CODENAME-$ARCH/apt/sources.list
fi fi
fi fi

View File

@ -22,56 +22,61 @@ if [ $N != 1 ]; then
exit 0; exit 0;
fi fi
echo -n "boot1" > $N.mkisofs_opts echo -n "1/boot" > $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 # put the relevant parts of SILO boot loader
mkdir -p boot1/boot mkdir -p $CDDIR/install
cp -p $BOOTDIR/cd.b $BOOTDIR/second.b boot1/boot ln -sf install $CDDIR/etc
cat - > boot1/boot/silo.conf << __EOF__ ln -sf install $CDDIR/boot
message=!cd1 cp -p $BOOTDIR/cd.b $BOOTDIR/second.b $CDDIR/install
timeout=300 cat - > $CDDIR/install/silo.conf << __EOF__
root=/dev/ram partition=1
image[sun4c,sun4d,sun4m]=!cd2 message=/install/debian.txt
timeout=600
read-write
image[sun4c,sun4d,sun4m]=/install/sun4cdm/linux-a.out
label=linux label=linux
initrd=!cd5 initrd=/install/root.bin
image[sun4u]=!cd4 image[sun4u]=/install/sun4u/linux-a.out
label=linux label=linux
initrd=!cd5 initrd=/install/root.bin
image[sun4c,sun4d,sun4m]=!cd3
label=linux-2.2
initrd=!cd5
image[sun4u]=!cd4
label=linux-2.2
initrd=!cd5
__EOF__ __EOF__
# linux kernel & co are fetched directly from the install dir # linux kernel & co are fetched directly from the install dir
# ... put the message banner in boot/debian.txt # ... put the message banner in boot/debian.txt
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \ (cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
cp -p linux-a.out linux-2.2.1-sun4u-a.out \ cp -pP sun4cdm/linux-a.out sun4u/linux-a.out \
linux-2.2.1-a.out root.bin sparc_release_note.txt \
$CDDIR/install ) $CDDIR/install )
(cd $CDDIR/dists/$CODENAME/main/disks-$ARCH/current/ ; \
#echo mount -r -o loop \ cp -p images-1.44/root.bin $CDDIR/install )
# $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
cat - > $CDDIR/install/debian.txt << __EOF__
Welcome to Debian GNU/Linux 2.2!
This is the Debian Rescue CD. Keep it once you have installed
your system, as you can boot from it to repair the system on your
hard disk if that ever becomes necessary.
On most systems, you can go ahead and press <ENTER> to begin
installation. You will probably want to try doing that before you try
anything else. If you run into trouble, or if you already have
questions, press the <TAB> key to list alternative boot options or
enter the "help" keyword to show a message about SILO boot commands.
WARNING: You should completely back up all of your hard disks before
proceeding. The installation procedure can completely and
irreversibly erase them! If you haven't made backups yet, remove
the rescue CD from the drive and enter the "halt" keyword
to get back to the monitor.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
This CD uses Linux 2.2.14
Press <ENTER> to boot!
__EOF__