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

[Epic]: fix: files and templates in nested directories are not placed correctly

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • [Epic]: fix: files and templates in nested directories are not placed correctly
    • Low
    • Red Hat Enterprise Linux
    • 0% To Do, 0% In Progress, 100% Done
    • rhel-system-roles
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Dev ack

      Cause: If the user specified a file or template source within a nested
      directory, the role was using the whole path and not just the basename
      for the name of the destination file.

      Consequence: The role was trying to place files and templates in the
      same directory structure on the destination, which is not supported
      by systemd.

      Fix: Ensure the basename of the given file or template is used to
      construct the path to the destination.

      Result: The role works even when the source files and templates are
      in nested directories.

      NOTE: If you were relying on the old broken code to make deeply nested
      systemd and drop-in directories on the destination, and that somehow
      was working, it will no longer be working.

      Signed-off-by: Rich Megginson <rmeggins@redhat.com>

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: