debian-cd-clone/tools/generate_di+k_list

79 lines
1.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>
discover
eject
grub
2004-03-08 00:59:15 -01:00
lilo
locales
lvm10
2003-11-11 20:15:36 -01:00
aptitude
2003-12-24 15:21:14 -01:00
jfbterm
unifont
hotplug
2004-02-21 08:19:23 -01:00
iso-codes
console-cyrillic
console-terminus
pcmcia-cs
xfsprogs
reiserfsprogs
#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
/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
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
2004-01-13 18:31:57 -01:00
initrd-tools
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
/bin/sed -n 's/Package: \(kernel-image-.*-powerpc.*\)$/\1/p' \
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages |tail -n 2 \
>> debian-installer+kernel
cat >> debian-installer+kernel << EOF
#endif
EOF