How to disable module in initrd

Gianluca Cecchi gianluca.cecchi at gmail.com
Tue Nov 19 15:06:15 UTC 2013


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


More information about the users mailing list