View Issue Details

IDProjectCategoryView StatusLast Update
0015911CentOS-7anacondapublic2019-03-11 16:50
Reportermgraff 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.6.1810 
Target VersionFixed in Version 
Summary0015911: Cannot use libuser related binary in pre-/post-script in RPMs
DescriptionAnaconda sets the environment variable LIBUSER_CONF to use a temporary configuration that points to the "installroot" directory.
This variable breaks any RPM %pre/%post script that tries to use a binary linked to libuser, and makes the installation fail.
Steps To Reproduce- Build a RPM that uses /bin/passwd in its %pre or %post script
- Try to install it with the rest of CentOS using kickstart
- The installation fails when running the RPM script with this kind of error:
11:43:32,625 INFO packaging: passwd: libuser initialization error: could not open configuration file `/tmp/libuser.IDAQqN': No such file or directory
11:43:32,625 INFO packaging: error %pre(dummy-rpm-0:1.0.0-1.x86_64) scriptlet failed, exit status 1
Additional InformationThe workaround is to unset the variable in the script before using any binary linked with libuser.
TagsNo tags attached.
abrt_hash
URL

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-03-11 16:50 mgraff New Issue