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

systemd: Unexpanded RPM macro in %postrans scriptlet

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

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • rhel-9.5.z
    • rhel-9.5.z
    • systemd
    • None
    • Yes
    • Critical
    • rhel-plumbers
    • ssg_core_services
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      The %posttrans scriptlet of systemd-252-46.el9_5.4 reads like this:

      posttrans scriptlet (using /bin/sh):
      if [ $1 -eq 1 ]; then
          # Initial installation
          # HACK: apparently there are RPM dependency loops which prevent us from using semodule in %post so insert policy module again
          %selinux_modules_install -s %{selinuxtype} /usr/share/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2
      fi
      

      Note the unexpanded RPM macro %selinux_modules_install.

      This causes installation to fail with:

      DNF error: Error in POSTTRANS scriptlet in rpm package systemd  
      

      This is a regression relative to systemd-252-46.el9_5.3.

              systemd-maint systemd maint mailing list
              fweimer@redhat.com Florian Weimer
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: