Bug 1667642
| Summary: | Getting messages like "systemd-udevd[XXX]: Process '/sbin/modprobe -bv sg' failed with exit code 1." on boot | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jose Castillo <jcastillo> | ||||
| Component: | dracut | Assignee: | Lukáš Nykrýn <lnykryn> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-daemons | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 8.0 | CC: | bugzilla, dracut-maint-list, dtardon, jdluhos, systemd-maint-list | ||||
| Target Milestone: | rc | ||||||
| Target Release: | 8.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-08-03 17:43:33 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: | |||||||
| Attachments: |
|
||||||
|
Description
Jose Castillo
2019-01-19 09:53:43 UTC
The messages come from the following udev rule:
/usr/lib/udev/rules.d/40-redhat.rules:SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
/usr/lib/udev/rules.d/40-redhat.rules:SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_target", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
This rule is included in the initramfs image, but the module it tries to load is not:
# lsinitrd /boot/initramfs-`uname -r`.img |grep sg
crw-r--r-- 1 root root 1, 11 Oct 30 08:38 dev/kmsg
-rwxr-xr-x 1 root root 83640 Oct 30 08:38 usr/bin/dmesg
-rw-r--r-- 1 root root 942 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg-latin1-lk450.map.gz
-rw-r--r-- 1 root root 992 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg-latin1.map.gz
-rw-r--r-- 1 root root 924 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg.map.gz
-rw-r--r-- 1 root root 3161 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg.map.sg-decimal-separator
After using:
# dracut --add-drivers sg /boot/initramfs-`uname -r`.img -v --force
The module is added, and the messages disappear:
# lsinitrd /boot/initramfs-`uname -r`.img |grep sg
Arguments: --add-drivers 'sg' -v --force
crw-r--r-- 1 root root 1, 11 Oct 30 08:38 dev/kmsg
-rwxr-xr-x 1 root root 83640 Oct 30 08:38 usr/bin/dmesg
-rw-r--r-- 1 root root 942 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg-latin1-lk450.map.gz
-rw-r--r-- 1 root root 992 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg-latin1.map.gz
-rw-r--r-- 1 root root 924 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg.map.gz
-rw-r--r-- 1 root root 3161 Oct 30 08:38 usr/lib/kbd/keymaps/legacy/i386/qwertz/sg.map.sg-decimal-separator
-rw-r--r-- 1 root root 20920 Oct 30 08:38 usr/lib/modules/4.18.0-58.el8.x86_64/kernel/drivers/scsi/sg.ko.xz
Changing component from systemd to dracut, since there seems to be the problem. Dracut version is dracut-049-8.git20181030.el8.x86_64 Created attachment 1521769 [details]
Possible patch
Possible patch, very simple. It just adds the 'sg' (scsi generic) module to the list of modules to be loaded, when the other scsi module are loaded (sd_mod, sr_mod)
*** This bug has been marked as a duplicate of bug 1579763 *** |