Bug 789639

Summary: dm_mod aka dm-mod.ko is loaded by default but i not use RAID or LVM
Product: Red Hat Enterprise Linux 6 Reporter: xset1980
Component: device-mapperAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: agk, dwysocha, harald, heinzm, jbrassow, mbroz, prajnoha, prockai, thornber, xset1980, zkabelac
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-12 00:28:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description xset1980 2012-02-11 23:27:54 UTC
Description of problem:

rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM is specified in cmdline, and no have any RAID or LVM, but, rc.sysinit, check the /proc/devices, and see device-mapper and load dm_mod module.
I no have any device-mapper, no use any RAID, LVM or encription for / or /home.
So, dm_mod is loaded for a error in device mapper or kernel, that report an no present device in /proc/devices.

I mofidy the /etc/dracut.conf uncommented the line hostonly, and adding the module for not load, and recreated the initrd image, but, the module is loaded anyway.

Fedora 13, rd_NO_DM rd_NO_MD work, and prevent the load of modules at start
dracut.conf

cat /etc/dracut.conf
# Sample dracut config file

# Specific list of dracut modules to use
#dracutmodules+=""

# Dracut modules to omit
omit_dracutmodules+="dm-mod dm_mod dm-mod.ko"

# Dracut modules to add to the default
#add_dracutmodules+=""

# additional kernel modules to the default
#add_drivers+=""

# list of kernel filesystem modules to be included in the generic initramfs
#filesystems+="ext4 ext2 ext3 ntfs fuse reiserfs"

# build initrd only to boot current hardware
hostonly="yes"
#

# install local /etc/mdadm.conf
mdadmconf="no"

# install local /etc/lvm/lvm.conf
lvmconf="no"



Version-Release number of selected component (if applicable):

vmlinuz-2.6.32-220.4.1.el6.i686

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
dm_mod is loaded

Expected results:
dm_mod loaded only if LVM, RAID or encription partition is present

Additional info:

Scientific Linux 6.1 x86

Comment 2 Alasdair Kergon 2012-02-12 00:28:49 UTC

*** This bug has been marked as a duplicate of bug 789630 ***