How to disable module in initrd

Mateusz Marzantowicz mmarzantowicz at osdf.com.pl
Tue Nov 19 16:58:40 UTC 2013


On 19.11.2013 16:06, Gianluca Cecchi wrote:
> On Tue Nov 19 13:30:32 UTC 2013 Mateusz Marzantowicz wrote:
>> man 5 dracut.conf -> section: omit_drivers
> 
> It seems not to work.
> Created /etc/dracut.conf.d/qla2xxx_omit.conf
> # cat /etc/dracut.conf.d/qla2xxx_omit.conf
> omit_drivers+="qla2xxx "
> 
> dracut  --force "initramfs-3.11.8-200.fc19.x86_64.img" 3.11.8-200.fc19.x86_64
> I continue to see qla2xxx inside the generated initrd and server has
> problems to boot.
> 
> Tried also from command line:
> dracut --omit "qla2xxx" --force "initramfs-3.11.8-200.fc19.x86_64.img"
> 3.11.8-200.fc19.x86_64
> 
> but again qla2xxx is inside initrd and booting I have problems..
> # gunzip < /boot/initramfs-3.11.8-200.fc19.x86_64.img | cpio
> -itdmuv|grep qla2xxx
> drwxr-xr-x   2 root     root            0 Nov 19 15:28
> usr/lib/modules/3.11.8-200.fc19.x86_64/kernel/drivers/scsi/qla2xxx
> -rw-r--r--   1 root     root       822783 Nov 13 17:55
> usr/lib/modules/3.11.8-200.fc19.x86_64/kernel/drivers/scsi/qla2xxx/qla2xxx.ko
> 54688 blocks
> 
> BTW: where is the old "init" script that loaded the kernel modules in the past?
> WHat if I want to manually remove qla2xxx from generated initrd?
> Gianluca
> 

This doesn't resolve you're problem but it might help you diagnose what
is going on there. In /etc/dracut.conf enable logging by removing
comment from:

logfile=/var/log/dracut.log

In /var/log/dracut.log, you should have results of running dracut
command. Maybe this will tell you something useful.


Mateusz Marzantowicz


More information about the users mailing list