Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1650707 - DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core
Summary: DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: grubby
Version: rawhide
Hardware: armhfp
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Javier Martinez Canillas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
 
Reported: 2018-11-16 22:10 UTC by Paul Whalen
Modified: 2019-02-01 13:30 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-31 20:12:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
anaconda log (30.83 KB, text/plain)
2018-11-16 22:11 UTC, Paul Whalen
no flags Details
dnf.librepo.log (337.75 KB, text/plain)
2018-11-16 22:12 UTC, Paul Whalen
no flags Details
hawkey.log (2.43 KB, text/plain)
2018-11-16 22:13 UTC, Paul Whalen
no flags Details
packaging.log (147.61 KB, text/plain)
2018-11-16 22:13 UTC, Paul Whalen
no flags Details
program.log (77.55 KB, text/plain)
2018-11-16 22:14 UTC, Paul Whalen
no flags Details
PATCH] Install grubby-deprecated when using the extlinux bootloader (1.06 KB, patch)
2018-11-17 16:14 UTC, Javier Martinez Canillas
no flags Details | Diff
[PATCH] Install grubby-deprecated package for ARMv7 (1.05 KB, patch)
2018-11-17 16:35 UTC, Javier Martinez Canillas
no flags Details | Diff

Description Paul Whalen 2018-11-16 22:10:47 UTC
Description of problem:

armhfp rawhide installation currently fail with:

..
Configuring authselect-compat.armv7hl
Configuring kernel-core.armv7hl
================================================================================
================================================================================
Error

   The following error occurred while installing.  This is a fatal error and
   installation will be aborted.
   
   DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core


Version-Release number of selected component (if applicable):
grubby-8.40-20.fc30.armv7hl.rpm

How reproducible:
Everytime

Comment 1 Paul Whalen 2018-11-16 22:11:38 UTC
Created attachment 1506568 [details]
anaconda log

Comment 2 Paul Whalen 2018-11-16 22:12:32 UTC
Created attachment 1506569 [details]
dnf.librepo.log

Comment 3 Paul Whalen 2018-11-16 22:13:23 UTC
Created attachment 1506570 [details]
hawkey.log

Comment 4 Paul Whalen 2018-11-16 22:13:48 UTC
Created attachment 1506571 [details]
packaging.log

Comment 5 Paul Whalen 2018-11-16 22:14:40 UTC
Created attachment 1506572 [details]
program.log

Comment 6 Peter Robinson 2018-11-17 11:57:08 UTC
Javier: your changes on November 12th (grubby-8.40-20) has broken ARMv7

Comment 7 Peter Robinson 2018-11-17 11:59:08 UTC
I thought the whole point, or at least one of them, of BLS is that grubby isn't needed at all, so I wonder why these changes were even necessary?

Comment 8 Javier Martinez Canillas 2018-11-17 15:27:02 UTC
Hello Peter,

(In reply to Peter Robinson from comment #6)
> Javier: your changes on November 12th (grubby-8.40-20) has broken ARMv7

I thought that on F29 ARMv7 already migrated to grub2 by chain-loading from u-boot as mentioned in https://fedoraproject.org/wiki/Changes/uEFIforARMv7.

Since in Rawhide / F30 we now default to BLS, the latest changes in the grubby package move the old grubby tool and the new-kernel-pkg script to the grubby-deprecated package.

But if the plan is to keep using u-boot / extlinux for ARMv7 in F30, then we should make the grubby-deprecated package to be installed for this platform.

Comment 9 Javier Martinez Canillas 2018-11-17 15:31:03 UTC
(In reply to Peter Robinson from comment #7)
> I thought the whole point, or at least one of them, of BLS is that grubby
> isn't needed at all, so I wonder why these changes were even necessary?

That's correct. As mentioned the change was to move the old grubby binary and the new-kernel-pkg script to a grubby-deprecated package. The grubby package now contains a grubby wrapper (grubby-bls) script that implements all the old grubby options but instead of modifying bootloader config files, it modifies the BLS snippets.

We did this for backward compatibility reasons, to support grubby users.

Comment 10 Javier Martinez Canillas 2018-11-17 16:14:27 UTC
Created attachment 1506789 [details]
PATCH] Install grubby-deprecated when using the extlinux bootloader

I think we need the attached patch for Anaconda so the grubby-deprecated package is installed when using the extlinux bootloader.

I couldn't test it because don't have an ARMv7 board now, but I can test it next week.

Comment 11 Javier Martinez Canillas 2018-11-17 16:35:45 UTC
Created attachment 1506801 [details]
[PATCH] Install grubby-deprecated package for ARMv7

As pointed out by Peter Robinson, the Anaconda changes are not enough and Lorax also needs to know that the grubby-deprecated package is needed for ARMv7.

Attached patch for Lorax as well.

Comment 12 Javier Martinez Canillas 2018-11-17 16:50:58 UTC
Also proposed upstream pull-request for lorax and anaconda:

https://github.com/weldr/lorax/pull/527

https://github.com/rhinstaller/anaconda/pull/1693

Comment 13 Laurie Barry 2018-11-26 18:13:02 UTC
Broadcom Emulex team is also seeing this bug.  When can we expect a fix?

Laurie

Comment 14 Ewan D. Milne 2019-01-31 19:31:16 UTC
(In reply to Laurie Barry from comment #13)
> Broadcom Emulex team is also seeing this bug.  When can we expect a fix?
> 
> Laurie

What architecture?  Was this on ARM?  And is this on Fedora, or RHEL8, or both?

Comment 15 ricky.armas 2019-01-31 19:45:11 UTC
(In reply to Ewan D. Milne from comment #14)
> (In reply to Laurie Barry from comment #13)
> > Broadcom Emulex team is also seeing this bug.  When can we expect a fix?
> > 
> > Laurie
> 
> What architecture?  Was this on ARM?  And is this on Fedora, or RHEL8, or
> both?

This was on an earlier Snapshot of RHEL 8 on x86_64. I have not retested using Snapshot 4.

Comment 16 Ewan D. Milne 2019-01-31 19:50:47 UTC
(In reply to ricky.armas from comment #15)
> (In reply to Ewan D. Milne from comment #14)
> > (In reply to Laurie Barry from comment #13)
> > > Broadcom Emulex team is also seeing this bug.  When can we expect a fix?
> > > 
> > > Laurie
> > 
> > What architecture?  Was this on ARM?  And is this on Fedora, or RHEL8, or
> > both?
> 
> This was on an earlier Snapshot of RHEL 8 on x86_64. I have not retested
> using Snapshot 4.

OK, thank you, please reply the kernel version you used and I will clone this for RHEL8.

Comment 17 Javier Martinez Canillas 2019-01-31 20:00:34 UTC
(In reply to Ewan D. Milne from comment #16)
> (In reply to ricky.armas from comment #15)
> > (In reply to Ewan D. Milne from comment #14)
> > > (In reply to Laurie Barry from comment #13)
> > > > Broadcom Emulex team is also seeing this bug.  When can we expect a fix?
> > > > 
> > > > Laurie
> > > 
> > > What architecture?  Was this on ARM?  And is this on Fedora, or RHEL8, or
> > > both?
> > 
> > This was on an earlier Snapshot of RHEL 8 on x86_64. I have not retested
> > using Snapshot 4.
> 
> OK, thank you, please reply the kernel version you used and I will clone
> this for RHEL8.

Please don't clone this for RHEL8. The fact that they are getting the same "DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core" error message, doesn't mean that it's the same bug. That just tells that some scriptlet failed but doesn't say much about the actual cause of the failure.

This particular bug is about the grubby tool not being installed by default on Fedora and ARMv7 requiring grubby to add new kernel entries to the extlinux.conf file. That's not the case for RHEL8 since ARMv7 is not a supported architecture. So this definitely bug is not related to neither RHEL8 nor x86_64.

Also, if the scriptlet is failing probably is due kernel-install scripts that are installed by grub2-common. There were many bugs fixed on the grub2 package on recent snapshots, so I would first check if the issue is still reproduced with the latest snapshot.

Comment 18 Javier Martinez Canillas 2019-01-31 20:06:49 UTC
(In reply to Paul Whalen from comment #0)
> Description of problem:
> 
> armhfp rawhide installation currently fail with:
> 
> ..
> Configuring authselect-compat.armv7hl
> Configuring kernel-core.armv7hl
> =============================================================================
> ===
> =============================================================================
> ===
> Error
> 
>    The following error occurred while installing.  This is a fatal error and
>    installation will be aborted.
>    
>    DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core
> 
> 
> Version-Release number of selected component (if applicable):
> grubby-8.40-20.fc30.armv7hl.rpm
> 
> How reproducible:
> Everytime

Is this problem still happening? I think that it should had been fixed by Anaconda installing grubby-deprecated when using the extlinux bootloader:

https://github.com/rhinstaller/anaconda/commit/da7c834a83b

Comment 19 Paul Whalen 2019-01-31 21:21:51 UTC
This was fixed before the end of 2018 with the referenced commit, thanks Javier!

Comment 20 Laurie Barry 2019-01-31 21:45:00 UTC
fyi Broadcom Emulex is no longer seeing this as of Snapshot 4.  

thx
Laurie

On Thu, Jan 31, 2019 at 4:01 PM Ricky Armas <ricky.armas> wrote:
I tested on RHEL 8 SS4. Whatever was causing the issue, it is now fixed.

-Ricky

Comment 21 Ewan D. Milne 2019-02-01 13:30:37 UTC
(In reply to Laurie Barry from comment #20)
> fyi Broadcom Emulex is no longer seeing this as of Snapshot 4.  
> 
> thx
> Laurie
> 
> On Thu, Jan 31, 2019 at 4:01 PM Ricky Armas <ricky.armas> wrote:
> I tested on RHEL 8 SS4. Whatever was causing the issue, it is now fixed.
> 
> -Ricky

OK, thank you for retesting.


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