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

chkconfig RPM failed to install if /etc/init.d already exist

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.6
    • chkconfig
    • None
    • No
    • None
    • EasyFix
    • rhel-systemd
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

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

      OS: RHEL9.x
      chkconfig-1.24.1.el9.x86_64.rpm

      Problem Description:
      If directory /etc/init.d already exist before installing chkconfig,
      the chkconfig RPM failed to install with following error.

      error: unpacking of archive failed on file /etc/init.d: cpio: File from package already exist as a directory in system
      error: chkconfig-1.24-1.el9.x86_64: install failed

      Expected result.
      Install succesfully.

      Root cause.
      The chkconfig RPM includes the /etc/init.d in its RPM.
      I would suggest it to create the /etc/init.d directory in post script,
      if the directory doesn't exit.
      And if the directory already exist just ignore it.

      Before RHEL9, chkconfig was installed during os install.
      Since RHEL9, chkconfig was not installed as default.
      Some customer who still use an old initscript application may
      install chkconfig.
      But in some case, someone may configure their application before chkconfig rpm install.

              lnykryn@redhat.com Lukáš Nykrýn
              MasanariIidaNfr Masanari Iida
              HPE Confidential Group
              Lukáš Nykrýn Lukáš Nykrýn
              RHEL CS Plumbers QE Bot RHEL CS Plumbers QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: