Failing upgrade from version 7-200 fc43

hi so ive ive have setup a dual boot witrh windows 11 and fedora 43 and ive been trying to update my fedora version to (i think 12-200 correct me if im wrong) and have been struggling to as i recieve an error every time after it installs it but it doesnt apply the update to my kernal and after reboot it still shows 7-200 along side windows when i installed fedora i only had a small partion to experiment with it and i evenually expanded the partion using gparted i have had to move my boot partion for fedora over a few times to expand it however.

sudo dnf reinstall kernel kernel-*

"Running %posttrans scriptlet: kernel-core-0:6.19.12-200.fc43.x86_64

Non-critical error in %posttrans scriptlet: kernel-core-0:6.19.12-200.fc43.x86_64
Scriptlet output:
dracut[F]: Can’t write to /boot/efi/253d517cf4e1494d80c3550b6fa6ede8/6.19.12-200.fc43.x86_64: Directory /boot/efi/
/usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.

[RPM] %posttrans(kernel-core-6.19.12-200.fc43.x86_64) scriptlet failed, exit status 1"

i got this exit message and i dont where to go from here

Please can you check lsblk -f and ls /boot , ls /boot/efi

sudo ls /boot/efi
[sudo] password for user:
253d517cf4e1494d80c3550b6fa6ede8 FSCK0000.REC mach_kernel ‘System Volume Information’
EFI FSCK0001.REC System

ls /boot
config-6.18.7-200.fc43.x86_64 loader
efi lost+found
grub symvers-6.18.7-200.fc43.x86_64.xz
grub2 System.map-6.18.7-200.fc43.x86_64
initramfs-0-rescue-253d517cf4e1494d80c3550b6fa6ede8.img vmlinuz-0-rescue-253d517cf4e1494d80c3550b6fa6ede8
initramfs-6.18.7-200.fc43.x86_64.img vmlinuz-6.18.7-200.fc43.x86_64

lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
zram0 swap 1 zram0 cabcb35a-6342-46da-a3ec-972583053b7c [SWAP]
nvme0n1
├─nvme0n1p1 vfat FAT32 ESP 8207-DBB5 426.2M 16% /boot/efi
├─nvme0n1p2
├─nvme0n1p3 ntfs Acer 7E2C08D32C0887FB
├─nvme0n1p4 ntfs Recovery 2C3E09F43E09B83A
├─nvme0n1p5 ext4 1.0 11c21ae8-340e-4947-ba7c-b83cc6db0490 3.2G 14% /boot
└─nvme0n1p6 btrfs fedora 8d581400-1f59-4325-a7b8-d8f49e261711 95.8G 62% /home

Looks like your efi partition got corrupted

is that a common problem because of having both windows and fedora? and will i need to do a clean install as i have data i would like to avoid loseing

Never happened to me on dual boot system.
Did you have power cut off an ran something like fsck?

nah i dont remember my power cutting and tbh i dont actuually know what fsck is

Can you still boot into either Windows or Fedora?

im able to boot into both

What about this?

sudo ls /boot/efi/EFI

Boot fedora Microsoft OEM UpdateCapsule

So since you can still boot into Fedora and Windows, it sounds like the EFI partition data is still there.

The error message you get…

dracut[F]: Can’t write to /boot/efi/253d517cf4e1494d80c3550b6fa6ede8/6.19.12-200.fc43.x86_64

points to this issue, where the kernel install tries to write into /boot/efi/<machine-id> when it should be writing into /boot.

Try this:

sudo mv /boot/efi/253d517cf4e1494d80c3550b6fa6ede8 /boot/efi/253d517cf4e1494d80c3550b6fa6ede8_disabled

Renaming that directory should prevent the kernel install scripts from trying to write into /boot/efi.

Then try to reinstall the problem kernel packates:

sudo dnf reinstall 'kernel*-6.19.12-200.fc43.x86_64'

udo dnf upgrade
Updating and loading repositories:
Repositories loaded.
Nothing to do.

tthis is all i get now
even if i do --refresh it still doesnt apply ther update

`sudo dnf install ‘kernel*-6.9.12-200.fc43.x86_64’ did you do this command ?And if yes do again ls /boot/

It’s better to do reinstall than install.

install kernel* ... will bring in a bunch of kernel-related packages which aren’t part of the original install.

However, the version should be 6.19.12 not 6.9.12. That’s my error in my previous post - I’ll edit to correct that.

That’s right. dnf thinks that the kernel was successfully installed, because the rpm transaction was successful and the error didn’t happen until the post-install script.

So we need dnf reinstall rather than dnf upgrade to force the packages to be reinstalled.

Running %posttrans scriptlet: kernel-core-0:6.19.12-200.fc43.x86_64

Non-critical error in %posttrans scriptlet: kernel-core-0:6.19.12-200.fc43.x86_64
Scriptlet output:
dracut[F]: Can’t write to /boot/efi/253d517cf4e1494d80c3550b6fa6ede8/6.19.12-200.fc43.x86_64: Directory /boot/efi/253d517cf4e1494d80c3550
/usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.

[RPM] %posttrans(kernel-core-6.19.12-200.fc43.x86_64) scriptlet failed, exit status 1
Transaction failed: Rpm transaction failed.

thats the error message i got after it again