I just applied the following patch to base-installer.
Former behavior:
get_arch_kernel returns kernel-image-2.2.25-mac
This still works like normal, all available kernels are shown and the
arch_kernel is default.
New optional behavior:
get_arch_kernel returns mac
Now the list of available kernels is reduced to those that have mac in
them. Mac subarch users don't need to see vme kernels.
This would also allow all the archs which have versions hardcoded in
get_arch_kernel to drop those (and thus base-installer would not need
an update everytime a new kernel came out for some arch).
BTW: the current mips definition won't work because busybox grep doesn't
support patterns (*). With the new patch, returning the model should be
more interesting.
Please let me know if this might cause any problems for anyone.
Stephen
--- postinst 12 Feb 2004 20:54:25 -0000 1.72
+++ postinst 12 Feb 2004 21:14:16 -0000
@@ -351,6 +351,11 @@
arch_kernel=$(get_arch_kernel)
if kernel_present $arch_kernel ; then
KERNEL=$arch_kernel
+ else
+ kernels=`grep $arch_kernel $KERNEL_LIST | sort -r | tr '\n' ',' | sed -e 's/,$//'`
+ if [ "kernels" ]; then
+ db_subst base-installer/kernel/which-kernel KERNELS "$kernels"
+ fi
fi
if [ "$KERNEL" ] ; then
--
Stephen R. Marenka If life's not fun, you're not doing it right!
<stephen@marenka.net>
Attachment:
signature.asc
Description: Digital signature