Qubes-dist-upgrade stage 3 grub2-efi install failed

Hello!

I tried to perform in place upgrade of Qubes OS 4.2.4 to 4.3 today and it failed now my system cannot boot there is no grub menu anymore, I get directly to a grub shell. How can I repair it? How can I get into rescue shell like dom0 shell and repair grub2-efi package?

During in place upgrade, grub2-efi failed with error:

unpacking of archive failed on file /boot/efi/EFI/BOOT/BOOTX64.EFI;6949ecba: cpio: write failed - Operation not supported

no idea why …
/boot/efi was writable no problem, and had enough space, secureboot is disabled on my system because Qubes OS it not compatible with it so I don’t understand… however I have Windows 11 on dual boot installed which I don’t use so much and havent used since months but it should not bother…?

Thanks

I managed to get a valid grub menu and boot with configfile command and getting grub.cfg file from /boot partition (not /boot/efi), now still not sure how to fix it all properly with grub2-efi package but it booted, doing post-reboot steps now

qubesd.service didnt start because libvirtd.socket didnt start because unit virtlogd.socket was not found… investigating…

continued script manually from: qubes-dist-upgrade/scripts/qubes-dist-upgrade-r4.3.sh at e95dad55086b7f30c7dbc4e2c8819e49787c9713 · QubesOS/qubes-dist-upgrade · GitHub because it exited before that, so it seems systemctl preset-all will deal with the virtlogd issue, now the xscreensaver swap didnt work because it can’t find the repo… rebooting again to continue debugging…

the post-reboot steps ran successfully,

I then ran sudo qubes-dom0-update

it found grub2-efi-x64 2.06-7-fc41 to replace 2.06-4.fc37 and it updated successfully without errors now somehow

I also ran sudo qubes-dom0-update xfce4-screensaver then sudo dnf swap --allowerasing xscreensaver-base xfce4-screensaver to replicate the missing install step after pre-reboot failed on distro-sync for just grub2-efi-x64 (all the other packages succeeded, hence why I felt like I could maybe reboot and get away with it).

I also ran sudo authselect select local in the hope to solve pam_sss errors (minimal profile doesnt exist anymore in Fedora 41, seems local may be a replacement)

The new icons look sexy! Rebooting one last time hopefully everything is right! Thanks for update!

The grub menu now shows successfully by default

xfce4-screensaver is used instead of xscreensaver-base it seems, not sure why it was changed but it does work fine, it locks and unlocks!

Hi,
Thanks a lot, this post saved my day!
I ran into issues in step 3, most likely because I ran out of space for dom0 while running step 3. :frowning: So I ended up stuck with virtlogd.socket that would not start, missing files. Adding more space was easy, but recovering from an unfinished step 3 was not, until I came across your post.
systemctl preset-all resolved the virtlogd.socket problem, so from then on I was able to attempt upgrading to qubes4.3 again, which worked.
Thanks again!