Bug#577451: hw-detect: Should automatically install hardware related packages (RAID tools, printer drivers, fingerprint scanner tools, etc)

2010-04-15 Thread Petter Reinholdtsen
[Joey Hess]
 debconf passthrough should work with in-target used like that.

Good.  Then I guess the patch will work. :)

 But, discover-pkginstall needs to use the debconf-apt-progress
 command when it runs aptitude to install packages.

Tested fix for discover was just uploaded. :)

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577451: hw-detect: Should automatically install hardware related packages (RAID tools, printer drivers, fingerprint scanner tools, etc)

2010-04-12 Thread Otavio Salvador
Hello,

On Sun, Apr 11, 2010 at 6:55 PM, Frans Pop elen...@planet.nl wrote:

 reassign 577451 pkgsel
 severity 577451 wishlist
 thanks

 On Sunday 11 April 2010, Petter Reinholdtsen wrote:
  For some kind of hardware, it would be very nice if the Debian
  installer automatically installed the packages to support the hardware
  in question.

 IMO this belongs in pkgsel, not in hw-detect. It has nothing to do with
 hardware detection as used in D-I itself.


And it would be nice if it could be disabled by preseeding as well.

-- 
Otavio Salvador  O.S. Systems
E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br


Bug#577451: hw-detect: Should automatically install hardware related packages (RAID tools, printer drivers, fingerprint scanner tools, etc)

2010-04-11 Thread Petter Reinholdtsen

Package: hw-detect
Version: 1.50
Tags:patch

For some kind of hardware, it would be very nice if the Debian
installer automatically installed the packages to support the hardware
in question.  An example is the RAID monitoring and administration
tools needed to check and configure a hardware RAID (like cpqarrayd
and mpt-status).  Another is a TV card which might need V4L(2) tools
to configure it.

In Debian, the discover tool is capable of handling this for USB and
PCI devices at the moment.  I've written a wrapper script
discover-pkginstall to provide hw-detect with a simple way to get
these hardware specific packages installed by the installer.  The
feature have been on my todo list for a long time, so I report this
against an old hw-detect version to document this. :)

To make the feature really useful, the database with hardware to
package mappings in discover-data need to be updated to list all the
packages that should be installed when a given PCI or USB device is
discovered.  At the moment there are 34 PCI and 48 USB devices with
package mappings in the database, but I am sure there are more
hardware we should handle out there.

This untested patch relative to the current svn source should
implement this feature:

Index: hw-detect.post-base-installer.d/60install-hwpackages
===
--- hw-detect.post-base-installer.d/60install-hwpackages(revision 0)
+++ hw-detect.post-base-installer.d/60install-hwpackages(revision 0)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+apt-install discover || true
+if [ -x /target/sbin/discover-pkginstall ] ; then
+   in-target discover-pkginstall
+fi

I suspect it need more work to get the debconf stuff to work properly
from within d-i.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#577451: hw-detect: Should automatically install hardware related packages (RAID tools, printer drivers, fingerprint scanner tools, etc)

2010-04-11 Thread Joey Hess
Petter Reinholdtsen wrote:
 +apt-install discover || true
 +if [ -x /target/sbin/discover-pkginstall ] ; then
 +   in-target discover-pkginstall
 +fi
 
 I suspect it need more work to get the debconf stuff to work properly
 from within d-i.

debconf passthrough should work with in-target used like that.

But, discover-pkginstall needs to use the debconf-apt-progress
command when it runs aptitude to install packages.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#577451: hw-detect: Should automatically install hardware related packages (RAID tools, printer drivers, fingerprint scanner tools, etc)

2010-04-11 Thread Frans Pop
reassign 577451 pkgsel
severity 577451 wishlist
thanks

On Sunday 11 April 2010, Petter Reinholdtsen wrote:
 For some kind of hardware, it would be very nice if the Debian
 installer automatically installed the packages to support the hardware
 in question.

IMO this belongs in pkgsel, not in hw-detect. It has nothing to do with 
hardware detection as used in D-I itself.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org