debian-cd-clone/tools/generate_di+k_list

199 lines
4.5 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:
2005-05-26 17:55:13 +00:00
# MIRROR, CODENAME, DI_CODENAME
DATE=`date`
2005-05-26 17:55:13 +00:00
cat > debian-installer+kernel-$DI_CODENAME << EOF
/* These files + the ones needed by debootstrap are the ones needed for
- Since amd64 is not on standard debian mirrors, and generate_d-i+k_list must be runnable on them, make it chack for absence of amd64 Packages files and add a dummy kernel for amd64. This will need to be manually kept up-to-date by the amd64 people for now. - Didn't fix generate_di_list the same way, since doing so would be too hard. Next time tasks/debian-installer is updated using this script on a machine w/o the unofficial amd64 archive, the am64 info in the file will be lost. - Add DO NOT EDIT warning messages to generated files in cvs. - Check and revert manual modifications to tasks/base-sarge. This file is automatically generated and those mods would have been lost: - Add fileutils to generate_d-i+k_list, "until kernels get fixed", whatever that means. - arcboot was already in generate_d-i+k_list. - Update tasks/debian-installer+kernel using generate_d-i+k_list. - Sort package lists in tasks/base-sarge to ease comparisons when updating. - Update tasks/base-sarge for debootstrap 0.2.45. This includes the following removals: - aboot: already listed in debian-installer+kernel - gcc-3.2-base, libdb2, libgcrypt1, libgnutls7, libident, libdb2, libtasn1-0: obsolete - modconf: obsoleted by d-i - setserial: not base anymore - slang1: turned into slang1a-utf8 - libident: not needed by base anymore - lilo: in debian-installer+kernel - mbr: not installed anymore - pcmcia-cs: in debian-installer+kernel - syslinux: not installed - "filesutils": typo; fileutils in generate_d-i+k_list for m68k - quik: in debian-installer+kernel - yaboot: in debian-installer+kernel - arcboot: in debian-installer+kernel - delo: in debian-installer+kernel And the following additions: - libdb4.2, libgcrypt11, libgcrypt7, libgnutls10, libgnutls11, libgpg-error0, libtasn1-2: new libraries - console-tools: now installed by debootstrap even on s390
2005-01-02 22:31:45 -01:00
* debian-installer to be able to complete the installation of the base
* system.
*
* This list can be generated with the command:
* ../tools/generate_di+k_list
*
- Since amd64 is not on standard debian mirrors, and generate_d-i+k_list must be runnable on them, make it chack for absence of amd64 Packages files and add a dummy kernel for amd64. This will need to be manually kept up-to-date by the amd64 people for now. - Didn't fix generate_di_list the same way, since doing so would be too hard. Next time tasks/debian-installer is updated using this script on a machine w/o the unofficial amd64 archive, the am64 info in the file will be lost. - Add DO NOT EDIT warning messages to generated files in cvs. - Check and revert manual modifications to tasks/base-sarge. This file is automatically generated and those mods would have been lost: - Add fileutils to generate_d-i+k_list, "until kernels get fixed", whatever that means. - arcboot was already in generate_d-i+k_list. - Update tasks/debian-installer+kernel using generate_d-i+k_list. - Sort package lists in tasks/base-sarge to ease comparisons when updating. - Update tasks/base-sarge for debootstrap 0.2.45. This includes the following removals: - aboot: already listed in debian-installer+kernel - gcc-3.2-base, libdb2, libgcrypt1, libgnutls7, libident, libdb2, libtasn1-0: obsolete - modconf: obsoleted by d-i - setserial: not base anymore - slang1: turned into slang1a-utf8 - libident: not needed by base anymore - lilo: in debian-installer+kernel - mbr: not installed anymore - pcmcia-cs: in debian-installer+kernel - syslinux: not installed - "filesutils": typo; fileutils in generate_d-i+k_list for m68k - quik: in debian-installer+kernel - yaboot: in debian-installer+kernel - arcboot: in debian-installer+kernel - delo: in debian-installer+kernel And the following additions: - libdb4.2, libgcrypt11, libgcrypt7, libgnutls10, libgnutls11, libgpg-error0, libtasn1-2: new libraries - console-tools: now installed by debootstrap even on s390
2005-01-02 22:31:45 -01:00
* DO NOT EDIT THIS FILE, edit the above script
*
* Last update: $DATE
*/
2005-05-26 17:55:13 +00:00
#include <debian-installer-$DI_CODENAME>
eject
locales
libdevmapper1.01
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
2004-10-05 01:00:46 +00:00
localization-config
acpid
initramfs-tools
ppp
pppoeconf
#ifdef ARCH_i386
discover
2004-04-25 20:38:22 +00:00
discover1
grub
lilo
/* Note that we do not have to include every optimised kernel flavor for
* i386. Kernel headers are included as third party modules are commonly
* used on this architecture.
*/
kernel-image-2.4-386
kernel-pcmcia-modules-2.4-386
kernel-headers-2.4-386
linux-image-2.6-386
linux-headers-2.6-386
2004-12-08 22:23:09 -01:00
#endif
2004-12-08 22:23:09 -01:00
#ifdef ARCH_amd64
discover
discover1
grub
lilo
linux-image-2.6-amd64-generic
linux-headers-2.6-amd64-generic
#endif
#ifdef ARCH_alpha
aboot
aboot-base
2004-04-25 20:38:22 +00:00
discover1
kernel-image-2.4-generic
kernel-image-2.4-smp
#endif
#ifdef ARCH_hppa
2004-04-25 20:38:22 +00:00
discover1
linux-image-2.6-parisc
linux-image-2.6-parisc-smp
linux-image-2.6-parisc64
linux-image-2.6-parisc64-smp
#endif
#ifdef ARCH_ia64
2004-04-25 20:38:22 +00:00
discover1
2004-01-13 18:31:57 -01:00
initrd-tools
linux-image-2.6-itanium
linux-image-2.6-itanium-smp
linux-image-2.6-mckinley
linux-image-2.6-mckinley-smp
#endif
#ifdef ARCH_mips
arcboot
EOF
# Only include mips kernels that d-i base-installer installs.
# XXX once mips gets kernel-image-2.4-<subarch> packages, use those
# instead.
for subarch in r4k-ip22 r5k-ip22 sb1-swarm-bn; do
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
| grep -- "-$subarch$" | sort -n | tail -n 1 \
2005-05-26 17:55:13 +00:00
>> debian-installer+kernel-$DI_CODENAME
done
2005-05-26 17:55:13 +00:00
cat >> debian-installer+kernel-$DI_CODENAME << EOF
#endif
#ifdef ARCH_mipsel
delo
EOF
# Only include mipsel kernels that d-i base-installer installs.
# XXX once mips gets kernel-image-2.4-<subarch> packages, use those
# instead.
for subarch in r3k-kn02 r4k-kn04 cobalt lasat; do
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
| grep -- "-$subarch$" | sort -n | tail -n 1 \
2005-05-26 17:55:13 +00:00
>> debian-installer+kernel-$DI_CODENAME
done
2005-05-26 17:55:13 +00:00
cat >> debian-installer+kernel-$DI_CODENAME << EOF
#endif
#ifdef ARCH_powerpc
2004-04-25 20:38:22 +00:00
discover1
quik
yaboot
hfsutils
2004-07-18 21:18:02 +00:00
mkvmlinuz
module-init-tools
initrd-tools
linux-image-2.6-powerpc
linux-image-2.6-powerpc-smp
linux-image-2.6-powerpc64
EOF
# Only include powerpc kernels that d-i base-installer installs.
# XXX once powerpc 2.4 gets kernel-image-2.4-<subarch> packages, use those
# instead, but beware of apus.
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 \
2005-05-26 17:55:13 +00:00
>> debian-installer+kernel-$DI_CODENAME
done
2005-05-26 17:55:13 +00:00
cat >> debian-installer+kernel-$DI_CODENAME << EOF
#endif
#ifdef ARCH_sparc
2004-04-25 20:38:22 +00:00
discover1
initrd-tools
linux-image-2.6-sparc64
linux-image-2.6-sparc64-smp
kernel-image-2.4-sparc32
kernel-image-2.4-sparc32-smp
kernel-image-2.4-sparc64
kernel-image-2.4-sparc64-smp
2004-04-13 18:48:46 +00:00
#endif
2004-04-13 18:48:46 +00:00
#ifdef ARCH_m68k
- Since amd64 is not on standard debian mirrors, and generate_d-i+k_list must be runnable on them, make it chack for absence of amd64 Packages files and add a dummy kernel for amd64. This will need to be manually kept up-to-date by the amd64 people for now. - Didn't fix generate_di_list the same way, since doing so would be too hard. Next time tasks/debian-installer is updated using this script on a machine w/o the unofficial amd64 archive, the am64 info in the file will be lost. - Add DO NOT EDIT warning messages to generated files in cvs. - Check and revert manual modifications to tasks/base-sarge. This file is automatically generated and those mods would have been lost: - Add fileutils to generate_d-i+k_list, "until kernels get fixed", whatever that means. - arcboot was already in generate_d-i+k_list. - Update tasks/debian-installer+kernel using generate_d-i+k_list. - Sort package lists in tasks/base-sarge to ease comparisons when updating. - Update tasks/base-sarge for debootstrap 0.2.45. This includes the following removals: - aboot: already listed in debian-installer+kernel - gcc-3.2-base, libdb2, libgcrypt1, libgnutls7, libident, libdb2, libtasn1-0: obsolete - modconf: obsoleted by d-i - setserial: not base anymore - slang1: turned into slang1a-utf8 - libident: not needed by base anymore - lilo: in debian-installer+kernel - mbr: not installed anymore - pcmcia-cs: in debian-installer+kernel - syslinux: not installed - "filesutils": typo; fileutils in generate_d-i+k_list for m68k - quik: in debian-installer+kernel - yaboot: in debian-installer+kernel - arcboot: in debian-installer+kernel - delo: in debian-installer+kernel And the following additions: - libdb4.2, libgcrypt11, libgcrypt7, libgnutls10, libgnutls11, libgpg-error0, libtasn1-2: new libraries - console-tools: now installed by debootstrap even on s390
2005-01-02 22:31:45 -01:00
fileutils
2004-04-13 18:48:46 +00:00
EOF
2004-05-13 14:37:48 +00:00
# Get all the latest 2.2 for mac kernel
sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
2005-05-26 17:55:13 +00:00
>> debian-installer+kernel-$DI_CODENAME
2004-05-13 14:37:48 +00:00
# Get the latest 2.4 kernels, except mac
# XXX once m68k gets kernel-image-2.4-<subarch> packages, use those
# instead.
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 7 | \
2005-05-26 17:55:13 +00:00
grep -v mac >> debian-installer+kernel-$DI_CODENAME
2004-04-13 18:48:46 +00:00
2005-05-26 17:55:13 +00:00
cat >> debian-installer+kernel-$DI_CODENAME << EOF
#endif
#ifdef ARCH_arm
discover1
EOF
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-arm/Packages|tail -n5 \
2005-05-26 17:55:13 +00:00
>> debian-installer+kernel-$DI_CODENAME
2005-05-26 17:55:13 +00:00
cat >> debian-installer+kernel-$DI_CODENAME << EOF
#endif
EOF