Bug 789639 - dm_mod aka dm-mod.ko is loaded by default but i not use RAID or LVM
Summary: dm_mod aka dm-mod.ko is loaded by default but i not use RAID or LVM
Keywords:
Status: CLOSED DUPLICATE of bug 789630
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: device-mapper
Version: 6.1
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: LVM and device-mapper development team
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-11 23:27 UTC by xset1980
Modified: 2012-02-12 00:37 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-12 00:28:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.