Re: kmod vs module-init-tools regression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 22, 2012 at 05:19:35PM +0300, Thomas Backlund wrote:
> 22.04.2012 17:15, Dave Reisner skrev:
> > On Sun, Apr 22, 2012 at 04:38:34PM +0300, Thomas Backlund wrote:
> >> Hi,
> >>
> >> We have planned to let kmod replace module-init-tools in Mageia 2
> >>
> >>
> >> But we have noew found a regression in kmod vs module-init-tools.
> >>
> >>
> >> If we have a line:
> >>
> >> install ide-controller /sbin/modprobe ide_generic; /bin/true
> >>
> >>
> >> then module-init-tools will allow us to do:
> >>
> >> modprobe ide-controller
> >>
> >>
> >> but with kmod, it just says:
> >>
> >> FATAL: Module ide-controller not found.
> >>
> >>
> >> Is there plans to have kmod supporting this ?
> >>
> > 
> > This seems like a total misuse of install rules. Surely you meant to
> > use an alias here instead, e.g.
> > 
> >   alias ide-controller ide_generic
> > 
> > And this works with both M-I-T and kmod.
> > 
> > 
> 
> 
> Actually we (and Mandriva before us) have been using install rules for a
> long  time like this:

Ah, so here comes the full story... =)

> remove sdhci_pci /sbin/modprobe -r mmc_block; /sbin/modprobe
> --first-time -r --ignore-remove sdhci_pci
> install sdhci_pci /sbin/modprobe --first-time --ignore-install sdhci_pci
> && { /sbin/modprobe mmc_block; /bin/true; }
> remove tifm_7xx1 /sbin/modprobe -r mmc_block; /sbin/modprobe -r tifm_sd;
> /sbin/modprobe --first-time -r --ignore-remove tifm_7xx1
> install tifm_7xx1 /sbin/modprobe --first-time --ignore-install tifm_7xx1
> && { /sbin/modprobe mmc_block; /sbin/modprobe tifm_sd; /bin/true; }

This whole mess seems solvable with softdeps.

  softdep sdhci_pci post: mmc_block
  softdep mmc_block pre: tifm_sd tifm_7xx1

And it covers both install and remove.

> install scsi_hostadapter /sbin/modprobe ahci; /sbin/modprobe ata_piix;
> /bin/true
> install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe uhci_hcd;
> /bin/true
> install ide-controller /sbin/modprobe ide_pci_generic; /sbin/modprobe
> ide_generic; /bin/true

Why would these things not be picked up by udev?

> 
> 
> And I dont think alias will cope with this...
> 

Seems to me like you're solving a problem that either doesn't exist, or
you're solving it in entirely the wrong place.

dave
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux