Bug 1745346 - "DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core" installing VM on KVM
Summary: "DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core" installi...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 30
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-25 15:19 UTC by Kristian McColm
Modified: 2019-09-27 08:15 UTC (History)
27 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
contents of /tmp directory from the VM where the installation failed (8.42 MB, application/gzip)
2019-08-25 15:19 UTC, Kristian McColm
no flags Details

Description Kristian McColm 2019-08-25 15:19:00 UTC
Created attachment 1607868 [details]
contents of /tmp directory from the VM where the installation failed

Description of problem:
When installing FC30 on a KVM virtual machine from the ISO image downloaded at https://download.fedoraproject.org/pub/fedora/linux/releases/30/Server/x86_64/iso/Fedora-Server-dvd-x86_64-30-1.2.iso, I receive the following error:

"DNF error: Error in POSTTRANS scriptlet in rpm package kernel-core"

Version-Release number of selected component (if applicable):
Fedora 30-1.2
Host system is also running Fedora 30 on kernel 5.2.9-200.fc30 and libvirt-daemon-5.1.0-9

How reproducible:
Always

Steps to Reproduce:
1. Create a VM with the following command:

virt-install --name fc30-base-20190818 --vcpus 2 --cpu host --memory 4096 --location /u01/kvm/datastore/iso/Fedora-Server-dvd-x86_64-30-1.2.iso --os-variant fedora29 --disk size=50 --network default --noautoconsole

2. Start the graphical install by running "virt-viewer fc30-base-20190818"
3. Install the VM as follows:
  
- UTC time
- NTP enabled
- Hostname 'fc30-base-20190818'
- Base server package + Guest Agents
- DHCP for interface
- IPv6 Automatic
- Storage:
  - LVM + XFS (vg_root):
    - /boot 1G (non-LVM)
    - /home 4G (lv_home)
    - /opt 4G (lv_opt)
    - /var/log 10G (lv_var_log)
    - /var 20G (lv_var)
    - / rest (11G) (lv_root)
- Set root pass
- No additional user

Actual results:
Install runs OK until "Configuring kernel-core.x86_64" where it dies with the error dialog:

"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"

There are no tracebacks only an "Exit Installer" button.

Expected results:
Install completed successfully

Additional info:
Issue does not occur in the non-graphical installer, i.e. create the VM with the following options:

virt-install --name fc30-base-20190818 --vcpus 2 --cpu host --memory 4096 --location /u01/kvm/datastore/iso/Fedora-Server-dvd-x86_64-30-1.2.iso --os-variant fedora29 --disk size=50 --network default --noautoconsole --extra-args='console=ttyS0'

Comment 1 Vendula Poncova 2019-08-26 10:56:18 UTC
All RPM errors are fatal during the installation (see the bug 1565123). Reassigning to kernel.

Comment 2 Laura Abbott 2019-08-26 12:11:31 UTC
The posttrans script runs the kernel-install which is just a wrapper around dracut. I'd like the dracut team to take the first look.

Comment 4 Romain Chantereau 2019-09-26 14:28:58 UTC
I tried to find out what is happening.

Chrooting in the sysimage I launched the final posttrans script command:
/bin/kernel-install add 4.18.0-80.el8.x86_64 /lib/modules/4.18.0-80.el8.x86_64/vmlinuz

And it ended with error:

Could not determine the kernel command line parameters.
Please specify the kernel command line in /etc/kernel/cmdline!

Related to: https://code.obermui.de/GitHub-Mirror/systemd/commit/88e1306af6380794842fb31108ba67895799fab4

?

Comment 5 Romain Chantereau 2019-09-27 08:15:20 UTC
I think the issue is now fixed upsteam by the commit pointed in previous comment.

In the meantime, the workaround is to add a harmless (useless) extra arg to virt-install, like “--extra-args ro”.

Regards


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