diff --git a/lib/initcpio/hooks/arch_hwdetect_lts b/lib/initcpio/hooks/arch_hwdetect_lts index f23e26d02..521bb89d9 100644 --- a/lib/initcpio/hooks/arch_hwdetect_lts +++ b/lib/initcpio/hooks/arch_hwdetect_lts @@ -12,14 +12,14 @@ run_hook () # for alias in $(/sbin/modinfo $i|grep ^alias\:|cut -d' ' -f11); do # [ -z "$(modprobe --show-depends $alias|grep '/ata/'|grep -v 'libata.ko')" ] && echo "$(basename ${i})" | sed -e 's/.ko//g' >> /tmp/.ide-blacklist # done - for i in $(echo /lib/modules/$(uname -r)/kernel/drivers/ide/pci/*); do - basename $i .ko | grep -v ^ide >> /tmp/.ide-blacklist + for i in $(echo /lib/modules/$(uname -r)/kernel/drivers/ide/*); do + echo "blacklist $(basename $i .ko | grep -v ^ide)" >> /etc/modprobe.d/ide-blacklist.conf done msg "Blacklisted IDE modules (old subsystem) for udev:" msg "--------------------------------------" - if [ -s /tmp/.ide-blacklist ]; then - for i in $(sort -u /tmp/.ide-blacklist); do - echo -n "$i " + if [ -s /etc/modprobe.d/ide-blacklist.conf ]; then + for i in $(sort -u /etc/modprobe.d/ide-blacklist.conf); do + echo -n "$i " | sed 's/blacklist//g' done msg "" msg "If you need them, please use 'ide-legacy' boot option or load them by hand!"