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: install scsi_hostadapter /sbin/modprobe ahci; /sbin/modprobe ata_piix; /bin/true 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; } 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 And I dont think alias will cope with this... -- Thomas -- 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