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

lorax: Deletes /usr/sbin/ldconfig if it exists, breaking the installer

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • rhel-8.10.z
    • lorax-templates-rhel
    • None
    • No
    • Low
    • rhel-sst-image-builder
    • ssg_front_door
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • None

      With glibc-2.28-251.el8_10.7, the glibc package installs ldconfig as /usr/sbin/ldconfig, but lorax contains a pattern that deletes all files in /usr/sbin:

      # python-pyudev uses ctypes.util.find_library, which uses /sbin/ldconfig
      removefrom glibc /${libdir}/rtkaio* /sbin/sln
      removefrom glibc /usr/libexec/* /usr/sbin/*
      

      As a result, the installer breaks because as the comment indicates, ldconfig is required:

      Starting installer, one moment...
      Traceback (most recent call last):
        File "/sbin/anaconda", line 254, in <module>
          from pyanaconda.core import util, constants
        File "/usr/lib64/python3.6/site-packages/pyanaconda/core/util.py", line 42, in <module>
          from pyanaconda.core.configuration.anaconda import conf
        File "/usr/lib64/python3.6/site-packages/pyanaconda/core/configuration/anaconda.py", line 28, in <module>
          from pyanaconda.core.configuration.storage_constraints import StorageConstraints
        File "/usr/lib64/python3.6/site-packages/pyanaconda/core/configuration/storage_constraints.py", line 22, in <module>
          from pyanaconda.core.storage import DEVICE_TYPE_LVM, DEVICE_TYPE_MD, DEVICE_TYPE_PARTITION, \
        File "/usr/lib64/python3.6/site-packages/pyanaconda/core/storage.py", line 22, in <module>
          from blivet import udev
        File "/usr/lib/python3.6/site-packages/blivet/udev.py", line 39, in <module>
          global_udev = pyudev.Context()
        File "/usr/lib/python3.6/site-packages/pyudev/core.py", line 64, in __init__
          self._libudev = load_ctypes_library('udev', SIGNATURES, ERROR_CHECKERS)
        File "/usr/lib/python3.6/site-packages/pyudev/_ctypeslib/utils.py", line 56, in load_ctypes_library
          raise ImportError('No library named %s' % name)
      ImportError: No library named udev
      Exception ignored in: <bound method Context.__del__ of <pyudev.core.Context object at 0x7f4062de8550>>
      Traceback (most recent call last):
        File "/usr/lib/python3.6/site-packages/pyudev/core.py", line 68, in __del__
          self._libudev.udev_unref(self)
      AttributeError: 'Context' object has no attribute '_libudev' 

              brlane@redhat.com Brian Lane
              fweimer@redhat.com Florian Weimer
              Brian Lane Brian Lane
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: