Bug 1416155

Summary: RFE: The RHEL7 installation image should contain a list of the packages used to create the image
Product: Red Hat Enterprise Linux 7 Reporter: Martin Kolman <mkolman>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: Frodox, jstodola, mkolman, sbueno
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: lorax-19.6.98-1 Doc Type: Enhancement
Doc Text:
Feature: Log the package names used to create the boot.iso to "/root/lorax-packages.log" Reason: There is no rpmdb in the boot.iso, so it is difficult to tell what packages are used when creating the boot.iso without the original logs. Result: Package names and versions are logged to /root/lorax-packages.log
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 17:38:04 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 Martin Kolman 2017-01-24 17:47:14 UTC
Description of problem:
As the RHEL7 installation image does not contain the RPM database (for space saving reasons), it is currently not possible to check the version of packages that are installed on it/have been used to create the image from inside the image (without querying external build logs).

It would be good if the image could contain a list of packages that have been used to create it - so that a users can for example check if a fix has been propagated to the image by checking that a version of a package with the fix has been used to create the given installation image.

Version-Release number of selected component (if applicable):
RHEL 7.4 nightlies

How reproducible:
always

Steps to Reproduce:
1. start RHEL7 installation
2. switch to TTY2, which is running a root shell

Actual results:
There is no file on the image listing what packages have been used to create the given image, making it not possible to check from the shell what packages at which version have been used to crete the image.

Expected results:
There is a file (say /root/lorax-packages.log) that list all the packages (including package version) used to create the image.

Additional info:
Lorax already creates the /root/lorax-packages.log for Fedora installation images.

Comment 2 Brian Lane 2017-08-08 21:30:35 UTC
https://github.com/rhinstaller/lorax/pull/232

Comment 4 Jan Stodola 2017-12-05 09:59:45 UTC
/root/lorax-packages.log is available during installation and the file contains a list of packages used to build the installation images.

Tested with lorax-19.6.101-1.el7.
Moving to VERIFIED.

Comment 7 errata-xmlrpc 2018-04-10 17:38:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0947