This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2144770 - RHEL 8.7 kickstart installation fails when --optional option is used with @core package group [NEEDINFO]
Summary: RHEL 8.7 kickstart installation fails when --optional option is used with @co...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tboot
Version: 8.7
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Tony Camuso
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-22 09:35 UTC by mkenjale
Modified: 2023-09-08 17:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-07 17:38:57 UTC
Type: Bug
Target Upstream Version:
Embargoed:
tcamuso: needinfo? (mkenjale)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-2543 0 None Migrated None 2023-09-07 17:37:33 UTC
Red Hat Issue Tracker RHELPLAN-140137 0 None None None 2022-11-22 09:40:21 UTC

Description mkenjale 2022-11-22 09:35:45 UTC
=======================
Description of problem:
=======================
- RHEL 8.7 kickstart installation fails when --optional option is used with @core package group
------
DNF error: Error in POSTIN scriptlet in rpm package tboot
------

Kickstart:
-----
%packages
@core --optional
%end
-----

=============================================================
Version-Release number of selected component (if applicable):
=============================================================
- RHEL 8.7 ISO
- tboot-1.10.5-1.el8.x86_64.rpm 

===================
Steps to Reproduce:
===================

1. Write a kickstart file and add "--optional" option to "@core" package group. The following package section is enough to reproduce the issue:
-----
%packages
@core --optional
%end
-----

2. Start kickstart installation.
3. The installation(text as well as graphical mode) will fail with the following error:
------
DNF error: Error in POSTIN scriptlet in rpm package tboot
------

===============
Actual results:
===============
- Installation fails with the following error:
------
DNF error: Error in POSTIN scriptlet in rpm package tboot
------

================
Expected results:
================
- The installation should not fail when "--optional" option is used with @core package group.

================
Additional info:
================
- The issue is not reproducible with RHEL 8.6 or older version of RHEL ISO.
- Difference between RHEL 8.6 and RHEL 8.7 tboot package:
--------
[root@rhel8 ~]# rpm -qp --scripts tboot-1.10.2-1.el8.x86_64.rpm
[root@rhel8 ~]# 
[root@rhel8 ~]# rpm -qp --scripts tboot-1.10.5-1.el8.x86_64.rpm 
postinstall scriptlet (using /bin/sh):
efidir=$(find /boot -type d -name EFI)
if [ -n "$efidir" ]; then
	echo "EFI detected .."
	mkdir -pv /boot/efi/EFI/redhat/x86_64-efi
	cp -vf /usr/lib/grub/x86_64-efi/relocator.mod /boot/efi/EFI/redhat/x86_64-efi/
	cp -vf /usr/lib/grub/x86_64-efi/multiboot2.mod /boot/efi/EFI/redhat/x86_64-efi/
	gcfg=$(find /boot -name grub.cfg -print -quit)
	[ -n "$gcfg" ] && grub2-mkconfig -o "$gcfg"
fi
--------

===========
WORKAROUND:
===========
- Exclude the tboot package from the package group.
--------
%packages
@core --optional
-tboot
%end
--------

- One can install the tboot package post OS installation or in the %post section.
- I was able to install the package in the %post section as below:
--------
%packages
@core --optional
-tboot
%end
--
%post --nochroot --log=/mnt/sysimage/var/log/kickstart_post_nochroot.log
echo "Installing optional packages from core package group"
cd /run/install/sources/mount-0000-cdrom/BaseOS/Packages
rpm -ivh --root=/mnt/sysimage/ tboot-1.10.5-1.el8.x86_64.rpm grub2-efi-x64-modules-2.02-142.el8.noarch.rpm 
%end

Logs:
-----
09:33:26,010 DBG program: Return code: 0
09:36:35,756 INF program: Running in chroot '/mnt/sysroot'... depmod -a 4.18.0-425.3.1.el8.x86_64
09:36:47,403 DBG program: Return code: 0
09:36:47,404 INF program: Running in chroot '/mnt/sysroot'... dracut -f /boot/initramfs-4.18.0-425.3.1.el8.x86_64.img 4.18.0-425.3.1.el8.x86_64
09:37:07,564 DBG program: Return code: 0
09:37:07,648 INF program: Running... /bin/sh /tmp/ks-script-fgli1bo4
09:37:10,734 INF program: Installing optional packages from core package group
09:37:10,735 INF program: warning: tboot-1.10.5-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
09:37:10,735 INF program: Verifying...                          ########################################
09:37:10,735 INF program: Preparing...                          ########################################
09:37:10,735 INF program: Updating / installing...
09:37:10,735 INF program: grub2-efi-x64-modules-1:2.02-142.el8  ########################################
09:37:10,735 INF program: tboot-1:1.10.5-1.el8                  ########################################
09:37:10,735 INF program: EFI detected ..
09:37:10,736 INF program: mkdir: created directory '/boot/efi/EFI/redhat/x86_64-efi'
09:37:10,736 INF program: '/usr/lib/grub/x86_64-efi/relocator.mod' -> '/boot/efi/EFI/redhat/x86_64-efi/relocator.mod'
09:37:10,736 INF program: '/usr/lib/grub/x86_64-efi/multiboot2.mod' -> '/boot/efi/EFI/redhat/x86_64-efi/multiboot2.mod'
09:37:10,736 INF program: Generating grub configuration file ...
09:37:10,736 INF program: Found linux image: /boot/vmlinuz-4.18.0-425.3.1.el8.x86_64
09:37:10,736 INF program: Found initrd image: /boot/initramfs-4.18.0-425.3.1.el8.x86_64.img
09:37:10,736 INF program: done
09:37:10,736 DBG program: Return code: 0
-----
--------

Comment 1 Jan Stodola 2022-11-22 10:33:10 UTC
Reassigning to tboot for review.

Comment 7 Doug Ledford 2023-08-31 13:44:08 UTC
This bug is scheduled for migration to Jira.  When that happens, this bugzilla issue will be permanently closed with the status MIGRATED and all future interaction on this issue will need to happen in the Jira issue.  The new issue will be part of the RHEL project (a project for Jira only issues, which will sync once, then close the bugzilla issue and all future updates will happen in Jira), not part of the RHELPLAN project (which is part of the automated bugzilla->Jira mirroring and which allows ongoing updates to the bugzilla bug and syncs those updates over to Jira).

For making sure you have access to Jira in order to continue accessing this issue, follow one of the appropriate knowledge base articles:

KB0016394 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016394
KB0016694 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016694
KB0016774 - https://redhat.service-now.com/help?id=kb_article_view&sysparm_article=KB0016774

For general issues with Jira, open a ticket with rh-issues

Comment 8 RHEL Program Management 2023-09-07 17:33:56 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 9 RHEL Program Management 2023-09-07 17:38:57 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues.

Comment 10 Doug Ledford 2023-09-08 17:30:47 UTC
Additional information on creating a Jira account to access the migrated issue can be found here:

https://access.redhat.com/articles/7032570


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