Bug 1241547

Summary: 40-redhat.rules not included in initramfs
Product: Red Hat Enterprise Linux 7 Reporter: Rik Theys <rik.theys>
Component: dracutAssignee: dracut-maint
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: dracut-maint-list, hannsj_uhl, harald, jstodola, mkosaki, mkovarik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:54:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rik Theys 2015-07-09 13:01:58 UTC
Description of problem:

Since systemd-208-20.el7_1.5.x86_64, 40-redhat.rules contains directives to load the sg module.

Dracut doesn't include the 40-redhat.rules file into the initrd and for devices detected in early boot, the rules don't get applied.

Please update dracut to include 40-redhat.rules in the initrd.


Version-Release number of selected component (if applicable):
dracut-033-241.el7_1.3.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Attach a device that needs the sg driver to work (tape autochanger for example)
2. Reboot system
3.

Actual results:
The sg driver is not loaded.

Expected results:
The sg driver is loaded.


Additional info:

When the devices are hotplugged after boot, the sg driver does get loaded (as udev has the rules file).

Regards,

Rik

Comment 4 Michal Kovarik 2015-09-04 10:54:20 UTC
40-redhat.rules is included in dracut-033-314.el7.x86_64 (RHEL-7.2 Beta).

[root@system1 ~]# lsinitrd /boot/initramfs-3.10.0-306.0.1.el7.x86_64.img -f usr/lib/udev/rules.d/40-redhat.rules
# do not edit this file, it will be overwritten on update

# CPU hotadd request
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"

# Memory hotadd request
SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"

# reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"

# load SCSI generic (sg) driver
SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg

Comment 5 errata-xmlrpc 2015-11-19 12:54:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2091.html