Bug 1475781 - Optionally disable installation of platform-* and other unrequested packages
Optionally disable installation of platform-* and other unrequested packages
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Anaconda Maintenance Team
Release Test Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-27 06:40 EDT by Frantisek Kluknavsky
Modified: 2017-07-27 08:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frantisek Kluknavsky 2017-07-27 06:40:45 EDT
Description of problem:
Anaconda smartly installs a group platform-<autodetected_by_systemd>, which is often great and convenient but sometimes not wanted. For example, when installing a virtual machine to be later used as a container image, this is very damaging. Even explicitly listing the packages not to be installed like:
"""
%packages --excludedocs --instLangs=en --nocore --nobase 
-@platform-kvm
-qemu-guest-agent
"""
does not help. Packages are still installed against users explicit commands.

To spell it in the most general way, it would be nice to have a mechanism to defend against installing any package not explicitly requested.

Version-Release number of selected component (if applicable):
anaconda-21.48.22.121-1.el7

How reproducible:
deterministic

Steps to Reproduce:
1. kickstart with the snippet above
2. repo with a group "platform-kvm" containing "qemu-guest-agent" package
2. install in a kvm-based virtual machine

Actual results:
qemu-guest-agent installed

Expected results:
qemu-guest-agent not installed

Additional info:
platform-kvm group appeared with rhel 7.4
Comment 2 Frantisek Kluknavsky 2017-07-27 06:45:49 EDT
Feature originally discussed in https://bugzilla.redhat.com/show_bug.cgi?id=884385
Comment 3 Frantisek Kluknavsky 2017-07-27 06:46:51 EDT
Package group added in https://bugzilla.redhat.com/show_bug.cgi?id=1186734
Comment 4 Radek Vykydal 2017-07-27 08:49:04 EDT
The request makes sense to me.
We don't allow excluding packages or groups required by anaconda but I think adding option like --allow-removing-anaconda-requirements (but with some sane name) to %packages section would be an improvement.

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