You are not logged in.

#1 2007-01-18 10:48:56

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

hwdetect & initscripts

There has just been another version bump of initscripts and as far as I can see the only change is in hwdetect.  Is hwdetect even used in the initscripts anymore?  I thought it was only used by mkinitcpio these days.

Because initscripts is one of those pkgs, like filesystem, that always results in pacnew or pacsave files any update always requires a clean-up so why force us to do that just because a change is made to a now unrelated script?  Would it not be better moved to it's own pkg or the mkinitcpio pkg?

I argued for this a long time ago; it was worse when it was still in development and there were sometimes three initscripts bumps a day.  It could have been resolved then - I never saw a good reason as to why it was not.

Offline

#2 2007-01-18 17:23:02

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hwdetect & initscripts

dtw wrote:

There has just been another version bump of initscripts and as far as I can see the only change is in hwdetect.  Is hwdetect even used in the initscripts anymore?  I thought it was only used by mkinitcpio these days.

mkinitcpio doesn't use hwdetect.

I actually have no idea where hwdetect is used, myself.

Offline

#3 2007-01-18 17:31:16

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: hwdetect & initscripts

I thought it was used to generate the fallback img?  But I guess you would know! smile

Offline

#4 2007-01-18 17:58:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hwdetect & initscripts

dtw wrote:

I thought it was used to generate the fallback img?  But I guess you would know! smile

The meat of the logic behind hwdetect is really a bash one-liner.  mkinitcpio uses that one-liner and just formats it differently.

Let me see if I can do this from memory:

modprobe -a --show-depends $(find /sys/devices/ -name modalias -exec cat {} ;)

Throw in a "| sort -u" and you have all the unique modules your hardware supports.

hwdetect does alot of "shaping" with this data... determining what modules count as "network" or "sound" or "disk" and things like that.  mkinitcpio really doesn't (all that much).

Offline

#5 2007-01-18 18:47:54

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: hwdetect & initscripts

...what is hwdetect for then? sad

Offline

#6 2007-01-18 19:06:54

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,930
Website

Re: hwdetect & initscripts

hwdetect
/sbin/hwdetect [options]

 This is a tool that detects/lists modules that are exported by /sys

Mr Green

Offline

#7 2007-01-18 22:12:05

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hwdetect & initscripts

Mr Green wrote:
hwdetect
/sbin/hwdetect [options]

 This is a tool that detects/lists modules that are exported by /sys
alias hwdetect="modprobe -a --show-depends $(find /sys/devices/ -name modalias -exec cat {} ;)"

Heh.

I think dtw's question is - what reason is there to have hwdetect in the initscripts package, which is completely valid IMO.

I'd say cram something in the bug tracker to try and get it moved to a separate package.

Offline

#8 2007-01-18 22:35:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: hwdetect & initscripts

I do use hwdetect, but I also think it could be better off as a separate package.

Offline

#9 2007-01-19 00:19:48

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: hwdetect & initscripts

I did an install with the new Alpha 3 ISO the other day, and I think it did use hwdetect to create the fallback image...I agree that it should be a separate package though.

Offline

#10 2007-01-19 07:34:44

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,930
Website

Re: hwdetect & initscripts

Sorry yes hwdetect should be a package [maybe even part of base!]


Mr Green

Offline

#11 2007-01-19 17:09:56

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: hwdetect & initscripts

I posted a bug here: http://bugs.archlinux.org/task/6234

As it is technically a feature request supporting comments would be appreciated smile

Ta - and thanks for the info, phrak.

Offline

#12 2007-01-20 10:04:51

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,331

Re: hwdetect & initscripts

hwdetect will be moved out of initscripts, it is used on install media 0.8 for correct module loading and initcpio, rc.conf setup

Offline

Board footer

Powered by FluxBB