Hello,
I’ve been trying to install Fedora with systemd-boot
through the latest (nightly) F40 Everything iso.
Sadly every attempt has failed, with not much useful information.
More specifically, the error produced is:
The following error occurred while installing the payload. This is a fatal error and installation will be aborted.
An error occurred during the transaction: Error in POSTTRANS scriptlet in rpm package kernel-core
With the error being fatal (exiting the installation) and me being pretty new to Fedora, I don’t know if there are more thorough logs I could somehow access for additional information.
I have tried:
- both
inst.sdboot
argument, and with kickstart withbootloader --sdboot
- Gnome Boxes (UEFI mode)
- bare metal (full UEFI mode, no legacy BIOS settings, used
systemd-boot
before on same system under other distribution)
Note: I’ve only started using kickstart yesterday in order to have some reproducibility in my tests, so keep an eye out for possible mistakes due to lack of experience
Here is a pretty minimal kickstart sample that consistently fails for me for all above scenarios:
# F40 sdboot failure with Err:
#
# The following error occurred while installing the payload.
# This is a fatal error and installation will be aborted.
# An error occurred during the transaction: Error in POSTTRANS scriptlet in rpm package kernel-core
graphical
keyboard us
lang en_US.UTF-8
timezone US/Eastern
# Use network installation
url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch"
selinux --enforcing
shutdown
bootloader --sdboot --timeout 0
# Partition clearing information
# !!! TESTER CAUTION !!! :
# next commands to be issued will erase all visible disks' data
# This setup assumes a single drive where the system should reside (eg for usage in a simple VM).
# Edit commands accordingly for testing on different setups.
zerombr
clearpart --all --initlabel --disklabel=gpt
autopart
# !!! TESTER CAUTION !!!:
# plaintext passwords ahead,
# suitable for testing purposes ONLY
rootpw --plaintext testsdb
user --groups=wheel --name=user --plaintext --password=testsdb
%packages
@^kde-desktop-environment
%end
After many tests, I tried among other things a manual partitioning as such:
# kickstart partitioning:
zerombr
clearpart --all --initlabel --disklabel=gpt
part /boot/efi --fstype="efi" --size=1024
part /boot --fstype="ext4" --size=512 --label="BOOT"
part / --fstype="xfs" --size=4096 --grow --label="ROOT"
This seems to complete the installation in my test (note: the system in Gnome Boxes is still unbootable until the vm device is configured for disabled secure boot, but after that it works as expected).
This makes me believe it might be an autopart
issue, or a btrfs
issue.
However with such minimal logging I wasn’t able to narrow it down for sure.
My experience with btrfs
is pretty limited so I couldn’t come up with a manual correct btrfs
kickstart partitioning to test.
Any advice for troubleshooting would be highly appreciated.
Edit:
Additional tests info:
- I’ve managed to successfully complete an F39 install with
inst.sdboot
and no kickstart. - On Rawhide I had the same failures however.