Fixes for task branching coherency.
This commit is contained in:
parent
f9b1bc58d4
commit
8750bd86df
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
# Generate a list of packages required for debian-installer
|
# Generate a list of packages required for debian-installer
|
||||||
# This script makes use of the following variables that need to be preset:
|
# This script makes use of the following variables that need to be preset:
|
||||||
# MIRROR, CODENAME
|
# MIRROR, CODENAME, DI_CODENAME
|
||||||
|
|
||||||
DATE=`date`
|
DATE=`date`
|
||||||
cat > debian-installer+kernel-$CODENAME << EOF
|
cat > debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
/* These files + the ones needed by debootstrap are the ones needed for
|
/* These files + the ones needed by debootstrap are the ones needed for
|
||||||
* debian-installer to be able to complete the installation of the base
|
* debian-installer to be able to complete the installation of the base
|
||||||
* system.
|
* system.
|
||||||
|
@ -18,7 +18,7 @@ cat > debian-installer+kernel-$CODENAME << EOF
|
||||||
* Last update: $DATE
|
* Last update: $DATE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <debian-installer-$CODENAME>
|
#include <debian-installer-$DI_CODENAME>
|
||||||
eject
|
eject
|
||||||
locales
|
locales
|
||||||
lvm10
|
lvm10
|
||||||
|
@ -50,15 +50,15 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.4.*-386\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.4.*-386\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-pcmcia-modules-2.4.*-386\)$/\1/p' \
|
/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 \
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.6.*-386\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*-386\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
$MIRROR/dists/$CODENAME/main/binary-i386/Packages|/usr/bin/tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_amd64
|
#ifdef ARCH_amd64
|
||||||
discover
|
discover
|
||||||
|
@ -69,17 +69,17 @@ EOF
|
||||||
|
|
||||||
if [ ! -e $MIRROR/dists/$CODENAME/main/binary-amd64/Packages ]; then
|
if [ ! -e $MIRROR/dists/$CODENAME/main/binary-amd64/Packages ]; then
|
||||||
echo "Cannot find amd64 packages file, inserting static entry as workaround" >&2
|
echo "Cannot find amd64 packages file, inserting static entry as workaround" >&2
|
||||||
echo kernel-image-2.6.8-11-amd64-generic >> debian-installer+kernel-$CODENAME
|
echo kernel-image-2.6.8-11-amd64-generic >> debian-installer+kernel-$DI_CODENAME
|
||||||
else
|
else
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.6.*-generic\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*-generic\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-amd64/Packages|/usr/bin/tail -n 1 \
|
$MIRROR/dists/$CODENAME/main/binary-amd64/Packages|/usr/bin/tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-pcmcia-modules-2.6.*-generic\)$/\1/p' \
|
/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 \
|
$MIRROR/dists/$CODENAME/main/binary-amd64/Packages|/usr/bin/tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_alpha
|
#ifdef ARCH_alpha
|
||||||
aboot
|
aboot
|
||||||
|
@ -89,9 +89,9 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-alpha/Packages|grep -v 2.4.21 \
|
$MIRROR/dists/$CODENAME/main/binary-alpha/Packages|grep -v 2.4.21 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_hppa
|
#ifdef ARCH_hppa
|
||||||
discover1
|
discover1
|
||||||
|
@ -99,9 +99,9 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.6.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.6.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-hppa/Packages|tail -n4 \
|
$MIRROR/dists/$CODENAME/main/binary-hppa/Packages|tail -n4 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_ia64
|
#ifdef ARCH_ia64
|
||||||
discover1
|
discover1
|
||||||
|
@ -110,18 +110,18 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2\.4\..*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2\.4\..*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
|
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2\.4-.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2\.4-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2\.6\..*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2\.6\..*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
|
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages | tail -n 4 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2\.6-.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2\.6-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-ia64/Packages \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_mips
|
#ifdef ARCH_mips
|
||||||
arcboot
|
arcboot
|
||||||
|
@ -132,10 +132,10 @@ for subarch in r4k-ip22 r5k-ip22; do
|
||||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
|
||||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_mipsel
|
#ifdef ARCH_mipsel
|
||||||
delo
|
delo
|
||||||
|
@ -146,10 +146,10 @@ for subarch in r3k-kn02 r4k-kn04; do
|
||||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
|
||||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_powerpc
|
#ifdef ARCH_powerpc
|
||||||
discover1
|
discover1
|
||||||
|
@ -167,10 +167,10 @@ for subarch in powerpc power3 power4 power3-pmac power3-chrp-rs6k \
|
||||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages \
|
||||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_sparc
|
#ifdef ARCH_sparc
|
||||||
discover1
|
discover1
|
||||||
|
@ -179,32 +179,24 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-.*-sparc.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-.*-sparc.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-sparc/Packages \
|
$MIRROR/dists/$CODENAME/main/binary-sparc/Packages \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_m68k
|
#ifdef ARCH_m68k
|
||||||
fileutils
|
fileutils
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Get all the 2.2 kernels
|
|
||||||
#/bin/sed -n 's/Package: \(kernel-image-2.2.*\)$/\1/p' \
|
|
||||||
# $MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 6 \
|
|
||||||
# >> debian-installer+kernel-$CODENAME
|
|
||||||
# Get the latest 2.4 kernel for amiga
|
|
||||||
#/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-$CODENAME
|
|
||||||
# Get all the latest 2.2 for mac kernel
|
# Get all the latest 2.2 for mac kernel
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
|
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
# Get the latest 2.4 kernels, except mac
|
# Get the latest 2.4 kernels, except mac
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 7 | \
|
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 7 | \
|
||||||
grep -v mac >> debian-installer+kernel-$CODENAME
|
grep -v mac >> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_arm
|
#ifdef ARCH_arm
|
||||||
discover1
|
discover1
|
||||||
|
@ -212,8 +204,8 @@ EOF
|
||||||
|
|
||||||
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
/bin/sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
||||||
$MIRROR/dists/$CODENAME/main/binary-arm/Packages|tail -n5 \
|
$MIRROR/dists/$CODENAME/main/binary-arm/Packages|tail -n5 \
|
||||||
>> debian-installer+kernel-$CODENAME
|
>> debian-installer+kernel-$DI_CODENAME
|
||||||
|
|
||||||
cat >> debian-installer+kernel-$CODENAME << EOF
|
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue