Bug 1223522

Summary: does not run rpm %pre
Product: [Community] Virtualization Tools Reporter: Florian Ludwig <vierzigundzwei>
Component: superminAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-18 13:26:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Ludwig 2015-05-20 18:23:13 UTC
Description of problem:
it seems that supermin does not run %pre of of rpms. This results in packages (e.g. httpd) not being usable (e.g. needed user not added).

Version-Release number of selected component (if applicable):
git

How reproducible:
include a rpm with %pre

Actual results:
%pre is not run

Expected results:
either run pre/post scripts or mentioned it in the docs that scripts are not run and workarounds are needed accordingly.

Comment 1 Richard W.M. Jones 2015-05-20 20:01:29 UTC
This is understood, and not a bug.  If you want commands to run
at boot then you have to add them to your appliance's init script.
It will never be possible, nor desirable, to run the %pre/%post
sections during appliance builds.

However it would be a desirable feature for supermin to be
able to extract the %pre/%post scripts from RPMs, either for
the user to examine them, or even to generate an init script
automatically.  (debootstrap has a similar feature to this)

In general I have argued that Fedora should minimize the use
of %pre/%post scripts.  Almost all could be banished with only
a little effort.

Comment 2 Jan Kurik 2015-07-15 14:07:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23