-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.6
-
None
-
No
-
None
-
EasyFix
-
rhel-systemd
-
ssg_core_services
-
None
-
False
-
False
-
-
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.