-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Glenn Saberton wrote: > Otavio Salvador wrote: >> Otavio Salvador <[EMAIL PROTECTED]> writes: > >>> I guess that we'll need to work on that at base-installer. I'll take a >>> look and propose a patch for that ... I hope to be able to do that >>> today but I can't promise. >> Well, after think a little about this problem I come up with the >> following idea how to solve that (no patch or code has been written >> for that yet): > >> - let the detection step at hw-detect module > >> - teach apt-install how to install a package that depends on the >> target kernel version > >> My idea here is to use: > >> apt-install atl2-modules-TARGET_KERNEL > >> This would then resolve it when possible and install the correct >> package for the target kernel. We could use >> base-installer/kernel/image to get the installed image and then >> with that find the kernel flavour. > >> What others think about that? > > Sounds like a good plan. I'll take a look tomorrow, today has been a > wasted day for me. > > Cheers > > Glenn After looking at finnish-install, the speakup script looked like a nice way to do it. Heres a preliminary patch. tested and installed the correct flavour kernel for my eee.
Cheers Glenn diff --git a/packages/finish-install/debian/rules b/packages/finish-install/debian/rules index ffd8c39..976f7b3 100755 - --- a/packages/finish-install/debian/rules +++ b/packages/finish-install/debian/rules @@ -4,6 +4,7 @@ DESTDIR = debian/finish-install scripts = \ 05speakup \ + 07atl2 \ 10bind-mount \ 20final-message \ 50config-target-network \ diff --git a/packages/finish-install/finish-install.d/07atl2 b/packages/finish-install/finish-install.d/07atl2 new file mode 100755 index 0000000..ca829a4 - --- /dev/null +++ b/packages/finish-install/finish-install.d/07atl2 @@ -0,0 +1,10 @@ +#!/bin/sh + +. /usr/share/debconf/confmodule + +ATL2=$(lsmod | grep ^atl2 | cut -d" " -f1) +if [ -n "$ATL2" ]; then + db_get base-installer/kernel/image + KVERS=${RET#*-image-} + apt-install atl2-modules-$KVERS 1>&2 + fi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkiirv8ACgkQV8GyuTwyskN4zQCgsBmDOaY7YlgsMPzohOgigzsN k10AoKRM4cD7cQUSa9vlF5o9NITwkvPY =AXCw -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]