Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-96152

Running dracut leads to "grep: warning: stray \ before /"

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-10.1
    • rhel-10.0
    • dracut
    • None
    • dracut-107-2.el10
    • No
    • Low
    • rhel-bootloader
    • ssg_core_services
    • 26
    • 2
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • 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

      1. Crete an entry in /etc/depmod.d/foo.conf
        1. Put "override foo * weak-updates/foo" in the file
      2. Run 'dracut /tmp/foo'
      3. Notice warnings

      Expected results

      No warnings

      Actual results

      grep: warning: stray \ before /

              pvalena@redhat.com Pavel Valena
              neescoba@cisco.com Nelson Escobar
              Nelson Escobar
              Cisco Confidential Group
              dracut maint mailing list dracut maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: