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:
|
|
|
|
# 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>
|
|
|
|
discover
|
|
|
|
eject
|
|
|
|
grub
|
|
|
|
locales
|
|
|
|
lvm10
|
2003-11-11 20:15:36 -01:00
|
|
|
aptitude
|
2003-10-05 21:09:17 +00:00
|
|
|
#ifdef ARCH_i386
|
|
|
|
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
|
2003-12-22 17:54:26 -01:00
|
|
|
/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
|
2003-10-05 21:09:17 +00:00
|
|
|
|
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_alpha
|
|
|
|
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_ia64
|
|
|
|
EOF
|
|
|
|
|
|
|
|
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
|
|
|
|
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages |tail -n 4 \
|
|
|
|
>> debian-installer+kernel
|
|
|
|
|
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
#ifdef ARCH_powerpc
|
|
|
|
EOF
|
|
|
|
|
|
|
|
#This is just temporary, they are going to change it all for 2.4.22
|
2003-11-13 16:33:50 -01:00
|
|
|
/bin/sed -n 's/Package: \(kernel-image-.*-powerpc.*\)$/\1/p' \
|
|
|
|
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages |tail -n 2 \
|
2003-10-05 21:09:17 +00:00
|
|
|
>> debian-installer+kernel
|
|
|
|
|
|
|
|
cat >> debian-installer+kernel << EOF
|
|
|
|
#endif
|
|
|
|
|
|
|
|
EOF
|