RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 616737 - image-minimizer: add droprpm/keeprpm for blacklisting RPMs
Summary: image-minimizer: add droprpm/keeprpm for blacklisting RPMs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: appliance-tools
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Alan Pevec
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 616119
TreeView+ depends on / blocked
 
Reported: 2010-07-21 10:12 UTC by Alan Pevec
Modified: 2010-10-22 00:57 UTC (History)
4 users (show)

Fixed In Version: appliance-tools-004.5-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-22 00:57:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alan Pevec 2010-07-21 10:12:01 UTC
Description of problem:
currently supported keywords by image-minimizer are:
drop <file path pattern>
keep <file path pattern>

which specify which part of the filesystem is removed, during creation.

Example usage:
%post --nochroot --interpreter image-minimizer
drop /usr/lib/libboost*
keep /usr/lib/libboost_program_options.so*
keep /usr/lib/libboost_filesystem.so*
keep /usr/lib/libboost_thread-mt.so*
keep /usr/lib/libboost_system.so*
drop /usr/kerberos
keep /usr/kerberos/bin/kinit
keep /usr/kerberos/bin/klist
%end

To support rhev-h blacklisting, following keywords are added:
droprpm <rpm name pattern>
keeprpm <rpm name pattern>

Example usage:
%post --nochroot --interpreter image-minimizer
droprpm perl-*
keeprpm perl-libs
%end

Comment 1 Alan Pevec 2010-07-22 01:41:09 UTC
Posted upstream https://www.redhat.com/archives/thincrust-devel/2010-July/msg00003.html

Comment 2 Alan Pevec 2010-07-27 00:30:56 UTC
Reposted upstream https://www.redhat.com/archives/thincrust-devel/2010-July/msg00007.html

Comment 3 Alan Pevec 2010-07-28 12:57:52 UTC
Follow-up patch to support drop-keep-drop
https://www.redhat.com/archives/thincrust-devel/2010-July/msg00009.html


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