-
Bug
-
Resolution: Unresolved
-
Minor
-
rhel-10.0
-
None
-
dracut-107-2.el10
-
No
-
Low
-
rhel-bootloader
-
ssg_core_services
-
26
-
2
-
Dev ack
-
False
-
False
-
-
None
-
None
-
Pass
-
Manual
-
Unspecified
-
Unspecified
-
Unspecified
-
x86_64
-
None
What were you trying to do that didn't work?
Installing a 3rd party kernel module rpm generated a warning message:
grep: warning: stray \ before /
I tracked this down to dracut. The file /usr/lib/dracut/modules.d/90kernel-modules-extra/module-setup.sh seems to be the cause. I believe the re_escape() in that file is adding an unnecessary '\' in front of the / in path names. The stricter grep in RHEL 10 then prints the warning.
What is the impact of this issue to you?
Seeing a warning message when installing a Cisco kernel module rpm is not desirable.
Please provide the package NVR for which the bug is seen:
dracut-105-4.el10_0.x86_64
How reproducible is this bug?:
100%
Steps to reproduce
- Crete an entry in /etc/depmod.d/foo.conf
- Put "override foo * weak-updates/foo" in the file
- Run 'dracut /tmp/foo'
- Notice warnings
Expected results
No warnings
Actual results
grep: warning: stray \ before /
- is duplicated by
-
RHEL-113834 Grep warning when installing kmod rpm
-
- Closed
-
- links to
-
RHBA-2025:152670 dracut update