2003-10-05 21:09:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Generate a list of packages required for debian-installer
|
|
|
|
# This script makes use of the following variables that need to be preset:
|
2004-05-07 08:46:37 +00:00
|
|
|
# MIRROR, CODENAME
|
2003-10-05 21:09:17 +00:00
|
|
|
|
|
|
|
DATE=`date`
|
|
|
|
cat > debian-installer+kernel << 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.
|
2003-10-05 21:09:17 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
2003-10-05 21:09:17 +00:00
|
|
|
* Last update: $DATE
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <debian-installer>
|
|
|
|
eject
|
|
|
|
locales
|
|
|
|
lvm10
|
2004-05-22 18:36:16 +00:00
|
|
|
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
|
2004-01-13 23:41:59 -01:00
|
|
|
hotplug
|
2004-06-07 15:16:40 +00:00
|
|
|
usbutils
|
2004-02-21 08:19:23 -01:00
|
|
|
iso-codes
|
2004-01-13 23:41:59 -01:00
|
|
|
console-cyrillic
|
|
|
|
console-terminus
|
2004-01-28 17:56:40 -01:00
|
|
|
pcmcia-cs
|
2004-03-10 19:22:41 -01:00
|
|
|
wireless-tools
|
2004-03-04 17:26:34 -01:00
|
|
|
xfsprogs
|
2004-05-30 18:06:58 +00:00
|
|
|
jfsutils
|
2004-03-04 17:26:34 -01:00
|
|
|
reiserfsprogs
|
2004-07-15 02:44:38 +00:00
|
|
|
libfribidi0
|
2004-10-05 01:00:46 +00:00
|
|
|
localization-config
|
2003-10-05 21:09:17 +00:00
|
|
|
#ifdef ARCH_i386
|
2004-03-31 23:37:57 +00:00
|
|
|
discover
|
2004-04-25 20:38:22 +00:00
|
|
|
discover1
|
2004-03-31 23:37:57 +00:00
|
|
|
grub
|
|
|
|
lilo
|
2003-10-05 21:09:17 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-2.4.*-386\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
2003-10-05 21:09:17 +00:00
|
|
|
>> debian-installer+kernel
|
2003-12-22 17:54:26 -01:00
|
|
|
/bin/sed -n 's/Package: \(kernel-pcmcia-modules-2.4.*-386\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
2003-12-22 17:54:26 -01:00
|
|
|
>> debian-installer+kernel
|
2004-04-21 11:11:32 +00:00
|
|
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*-386\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
2004-04-21 11:11:32 +00:00
|
|
|
>> debian-installer+kernel
|
2003-10-05 21:09:17 +00:00
|
|
|
|
2004-12-08 22:23:09 -01:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_amd64
|
|
|
|
EOF
|
|
|
|
|
- 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
|
|
|
if [ ! -e $MIRROR/dists/$CODENAME/main/binary-amd64/Packages ]; then
|
|
|
|
echo "Cannot find amd64 packages file, inserting static entry as workaround" >&2
|
|
|
|
echo kernel-image-2.6.8-9-amd64-generic >> debian-installer+kernel
|
|
|
|
else
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*-generic\)$/\1/p' \
|
|
|
|
$MIRROR/dists/$CODENAME/main/binary-amd64/Packages|/usr/bin/tail -n 1 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
/bin/sed -n 's/Package: \(kernel-pcmcia-modules-2.6.*-generic\)$/\1/p' \
|
|
|
|
$MIRROR/dists/$CODENAME/main/binary-amd64/Packages|/usr/bin/tail -n 1 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
fi
|
|
|
|
|
2003-10-05 21:09:17 +00:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_alpha
|
2004-07-30 01:45:42 +00:00
|
|
|
aboot
|
|
|
|
aboot-base
|
2004-04-25 20:38:22 +00:00
|
|
|
discover1
|
2003-10-05 21:09:17 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-alpha/Packages|grep -v 2.4.21 \
|
2003-10-05 21:09:17 +00:00
|
|
|
>> debian-installer+kernel
|
|
|
|
|
2004-03-16 08:51:53 -01:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_hppa
|
2004-04-25 20:38:22 +00:00
|
|
|
discover1
|
2004-03-16 08:51:53 -01:00
|
|
|
EOF
|
|
|
|
|
2005-01-16 03:35:22 -01:00
|
|
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-hppa/Packages|tail -n4 \
|
2004-03-16 08:51:53 -01:00
|
|
|
>> debian-installer+kernel
|
|
|
|
|
2003-10-05 21:09:17 +00:00
|
|
|
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
|
2003-10-05 21:09:17 +00:00
|
|
|
EOF
|
|
|
|
|
2004-07-13 20:04:53 +00:00
|
|
|
/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 \
|
2003-10-05 21:09:17 +00:00
|
|
|
>> 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
|
2003-10-05 21:09:17 +00:00
|
|
|
|
2004-03-31 23:37:57 +00:00
|
|
|
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' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
|
2004-03-31 23:37:57 +00:00
|
|
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
done
|
|
|
|
|
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_mipsel
|
2004-07-30 01:45:42 +00:00
|
|
|
delo
|
2004-03-31 23:37:57 +00:00
|
|
|
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' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
|
2004-03-31 23:37:57 +00:00
|
|
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
done
|
|
|
|
|
2003-10-05 21:09:17 +00:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_powerpc
|
2004-04-25 20:38:22 +00:00
|
|
|
discover1
|
2004-07-24 01:52:20 +00:00
|
|
|
quik
|
2004-06-07 09:35:40 +00:00
|
|
|
yaboot
|
2004-07-18 21:18:02 +00:00
|
|
|
mkvmlinuz
|
|
|
|
module-init-tools
|
|
|
|
initrd-tools
|
2003-10-05 21:09:17 +00:00
|
|
|
EOF
|
|
|
|
|
2004-03-18 18:52:33 -01:00
|
|
|
# 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 \
|
2004-09-25 13:44:45 +00:00
|
|
|
power4-pmac power4-chrp-rs6k powerpc-pmac \
|
2004-07-18 19:01:43 +00:00
|
|
|
powerpc-prep powerpc-chrp powerpc-chrp-rs6k apus; do
|
2004-03-18 18:52:33 -01:00
|
|
|
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages \
|
2004-03-18 18:52:33 -01:00
|
|
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
done
|
2003-10-05 21:09:17 +00:00
|
|
|
|
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
2004-03-16 02:09:29 -01:00
|
|
|
#ifdef ARCH_sparc
|
2004-04-25 20:38:22 +00:00
|
|
|
discover1
|
2004-08-05 17:48:35 +00:00
|
|
|
initrd-tools
|
2004-03-16 02:09:29 -01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-.*-sparc.*\)$/\1/p' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-sparc/Packages \
|
2004-03-16 02:09:29 -01:00
|
|
|
>> debian-installer+kernel
|
2003-10-05 21:09:17 +00:00
|
|
|
|
2004-04-13 18:48:46 +00:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#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
|
|
|
|
|
|
|
|
# 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' \
|
2004-05-07 08:46:37 +00:00
|
|
|
$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' \
|
2004-11-29 18:13:24 -01:00
|
|
|
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 7 | \
|
2004-05-13 14:40:55 +00:00
|
|
|
grep -v mac >> debian-installer+kernel
|
2004-04-13 18:48:46 +00:00
|
|
|
|
2005-02-20 22:06:39 -01:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_arm
|
|
|
|
discover1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
|
|
|
$MIRROR/dists/$CODENAME/main/binary-arm/Packages|tail -n5 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
|
2004-03-16 02:09:29 -01:00
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
2003-10-05 21:09:17 +00:00
|
|
|
EOF
|