debian-cd-clone/tools/generate_di+k_list

185 lines
4.8 KiB
Plaintext
Raw Normal View History

#!/bin/sh
# Generate a list of packages required for debian-installer
# This script makes use of the following variables that need to be preset:
# MIRROR, CODENAME
DATE=`date`
cat > debian-installer+kernel << EOF
/* These files + the ones needed by debootstrap are the ones needed for
* debian-installer to be able to complete the installation of the base.
* at least at this pre-sarge days.
*
* This list can be generated with the command:
* ../tools/generate_di+k_list
*
* Last update: $DATE
*/
#include <debian-installer>
eject
locales
lvm10
libdevmapper1.00
lvm-common
lvm2
mdadm
2003-11-11 20:15:36 -01:00
aptitude
2003-12-24 15:21:14 -01:00
jfbterm
unifont
hotplug
usbutils
2004-02-21 08:19:23 -01:00
iso-codes
console-cyrillic
console-terminus
pcmcia-cs
wireless-tools
xfsprogs
2004-05-30 18:06:58 +00:00
jfsutils
reiserfsprogs
libfribidi0
#ifdef ARCH_i386
discover
2004-04-25 20:38:22 +00:00
discover1
grub
lilo
EOF
/bin/sed -n 's/Package: \(kernel-image-2.4.*-386\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
>> debian-installer+kernel
/bin/sed -n 's/Package: \(kernel-pcmcia-modules-2.4.*-386\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
>> debian-installer+kernel
/bin/sed -n 's/Package: \(kernel-image-2.6.*-386\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
>> debian-installer+kernel
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_alpha
aboot
aboot-base
2004-04-25 20:38:22 +00:00
discover1
EOF
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-alpha/Packages|grep -v 2.4.21 \
>> debian-installer+kernel
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_hppa
2004-04-25 20:38:22 +00:00
discover1
EOF
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-hppa/Packages|tail -n4 \
>> debian-installer+kernel
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_ia64
2004-04-25 20:38:22 +00:00
discover1
2004-01-13 18:31:57 -01:00
initrd-tools
EOF
/bin/sed -n 's/Package: \(kernel-image-2\.4\..*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
>> debian-installer+kernel
/bin/sed -n 's/Package: \(kernel-image-2\.4-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
>> debian-installer+kernel
2004-09-23 16:03:02 +00:00
/bin/sed -n 's/Package: \(kernel-image-2\.6\..*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
>> debian-installer+kernel
/bin/sed -n 's/Package: \(kernel-image-2\.6-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
>> debian-installer+kernel
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_mips
arcboot
EOF
# Only include mips kernels that d-i base-installer installs.
for subarch in r4k-ip22 r5k-ip22; do
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
| grep -- "-$subarch$" | sort -n | tail -n 1 \
>> debian-installer+kernel
done
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_mipsel
delo
EOF
# Only include mipsel kernels that d-i base-installer installs.
for subarch in r3k-kn02 r4k-kn04; do
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
| grep -- "-$subarch$" | sort -n | tail -n 1 \
>> debian-installer+kernel
done
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_powerpc
2004-04-25 20:38:22 +00:00
discover1
quik
yaboot
2004-07-18 21:18:02 +00:00
mkvmlinuz
module-init-tools
initrd-tools
EOF
# Only include powerpc kernels that d-i base-installer installs.
2004-07-18 21:18:02 +00:00
for subarch in powerpc power3 power4 power3-pmac power3-chrp-rs6k \
power4-pmac power4-chrp-rs6k powerpc-pmac \
powerpc-prep powerpc-chrp powerpc-chrp-rs6k apus; do
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages \
| grep -- "-$subarch$" | sort -n | tail -n 1 \
>> debian-installer+kernel
done
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_sparc
2004-04-25 20:38:22 +00:00
discover1
initrd-tools
EOF
/bin/sed -n 's/Package: \(kernel-image-.*-sparc.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-sparc/Packages \
>> debian-installer+kernel
2004-04-13 18:48:46 +00:00
cat >> debian-installer+kernel << EOF
#endif
#ifdef ARCH_m68k
EOF
# Get all the 2.2 kernels
2004-05-13 14:37:48 +00:00
#/bin/sed -n 's/Package: \(kernel-image-2.2.*\)$/\1/p' \
# $MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 6 \
# >> debian-installer+kernel
2004-04-13 18:48:46 +00:00
# Get the latest 2.4 kernel for amiga
2004-05-13 14:37:48 +00:00
#/bin/sed -n 's/Package: \(kernel-image-2.4.*-amiga\)$/\1/p' \
# $MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
# >> debian-installer+kernel
# Get all the latest 2.2 for mac kernel
/bin/sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
2004-04-13 18:48:46 +00:00
>> debian-installer+kernel
2004-05-13 14:37:48 +00:00
# Get the latest 2.4 kernels, except mac
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 6 | \
2004-05-13 14:40:55 +00:00
grep -v mac >> debian-installer+kernel
2004-04-13 18:48:46 +00:00
cat >> debian-installer+kernel << EOF
#endif
EOF