Re: [RFC] Possible way of fixing this [was Re: [PATCH] Queue atl2-modules for installation if it is in use.
-----BEGIN PGP SIGNED MESSAGE-----
Glenn Saberton wrote:
> Otavio Salvador wrote:
>> Otavio Salvador <email@example.com> 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.
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.
diff --git a/packages/finish-install/debian/rules
index ffd8c39..976f7b3 100755
- --- a/packages/finish-install/debian/rules
@@ -4,6 +4,7 @@ DESTDIR = debian/finish-install
scripts = \
+ 07atl2 \
diff --git a/packages/finish-install/finish-install.d/07atl2
new file mode 100755
- --- /dev/null
@@ -0,0 +1,10 @@
+ATL2=$(lsmod | grep ^atl2 | cut -d" " -f1)
+if [ -n "$ATL2" ]; then
+ db_get base-installer/kernel/image
+ apt-install atl2-modules-$KVERS 1>&2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-----END PGP SIGNATURE-----