Upgrade problems on Fedora 40 with drive encryption (Surface Kernel) :category_help:

Hello,

I want to upgrade my system form Fedora 40 to 41. With Gnome Softwarecenter 46.5 and dnf 4.22.0 it dit not work.
In the terminal with dnf the download via dnf system-upgrade download --releasever=41 works fine.
Then I type sudo dnf system-upgrade reboot, after UEFI and drive decryption the installation starts.
The normal promts like [ OK ] multiple times comes. After some seconds the promt [=== _____ ] System update is being installed 14% appears (the number of percent dont rise).
After waiting 5 seconds it continues with multiple times [ OK ] and stop at systemd-shutdown[1]: Unable to finalize remaining DM device, Ignoring. and the screen goes black and the system automaticly reboot into Fedora 40.
It is not easy to read all promts, they appear too quickly. I don’t see if it will be 15% or if an error message appears.

My system:
Fedora Linux 40 (Workstation Edition)
Microsoft Corporation Surface Pro 7
Intel® Core™ i7-1065G7 × 8
Wayland
Kernel:
Linux 6.12.7-1.surface.fc40.x86_64
Installguide
Drive encryption (setup at first Install)
secureboot is enabled

After some searching, I can’t find a solution for me. I don’t know much about systemd, but here it is assumed that it is related to the drive (maybe drive encrypiton problem?).

Please can you help me!

Sorry for contributing this post.

Now I found a new post under “relatet” here is my log:

Jan 09 01:01:50 fedora systemd-cryptsetup[8256]: Device luks-40368df0-ca77-4ed7-9775-e66d6b97fbbe is still in use.
Jan 09 01:01:50 fedora systemd-cryptsetup[8256]: Failed to deactivate 'luks-40368df0-ca77-4ed7-9775-e66d6b97fbbe': Device or resource busy

Now I have hopefully found a new way to solve the problem myself. :thinking:

Did you run sudo dnf upgrade --refresh as prompted before doing the download step?

The kernel for f40 should be 6.12.9 or later when starting that upgrade.
The system should also be (if at all possible) plain fedora and not running on a kernel from some other source. Your kernel name appears to be a 3rd party kernel and may interfere with a proper update since the fedora repos do not provide that kernel.

You may be able to complete the upgrade if you run sudo dnf distro-sync --releasever=41 --refresh

1 Like

Hi, thanks for the fast answer.
Yes I run sudo dnf upgrade --refresh.

Ok, I could not find the information about the desired kernel version. (Thank you)
I know it is not the best to use a 3rd party kernel but otherwise I cant use this Hardware.