You are not logged in.
Pages: 1
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
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
I thought it was used to generate the fallback img? But I guess you would know! ![]()
Offline
I thought it was used to generate the fallback img? But I guess you would know!
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
...what is hwdetect for then? ![]()
Offline
hwdetect
/sbin/hwdetect [options]
This is a tool that detects/lists modules that are exported by /sysMr Green
Offline
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
I do use hwdetect, but I also think it could be better off as a separate package.
Offline
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
Sorry yes hwdetect should be a package [maybe even part of base!]
Mr Green
Offline
I posted a bug here: http://bugs.archlinux.org/task/6234
As it is technically a feature request supporting comments would be appreciated ![]()
Ta - and thanks for the info, phrak.
Offline
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
Pages: 1