Bug 1223522 - does not run rpm %pre
Summary: does not run rpm %pre
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: supermin
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-20 18:23 UTC by Florian Ludwig
Modified: 2022-10-18 13:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-10-18 13:26:00 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.