I won't quite call this solved, but I did manage to get it to boot my Fedora 32 install finally.
The following steps made it usable but I still need to fix kernel updates or it will break again:
0. Disable secure boot, I haven't gotten it to work with systemd-boot yet.
1. Boot Fedora Live USB and install gparted
2. Create a new ESP partition of 1GB formatted FAT32 (I shrunk my "/" by 1GB to make room). Make sure you change the partition flags on the original ESP to remove the ESP flag,
3. Copy the contents of the original ESP partition to it (the MS stuff).
4. Copy the contents of /boot to the ESP partition. It will complain about symlinks related to GRUB but we don't care but we're moving to systemd-boot.
5. From Fedora Live mount your installed system to chroot into:
# su
# cd /mnt
# mkdir fedora
# mount /dev/<fedora-root> fedora
# mount /dev/<new esp> fedora/boot
# mount -t proc /proc fedora/proc
# mount --rbind /dev fedora/dev
# mount --rbind /sys fedora/sys
# chroot fedora
# bootctl install
If you did everything right systemd-boot will find everything it needs and perform the install.
6. Update the EFI boot order
# efibootmgr -v
(remove old Fedora entry from original install)
# efibootmgr -B -b <bootnum>
(note the boot order and copy it and paste it to a new command)
# efibootmgr -o <paste>
(Rearrange the boot order to the Linux Boot Manger is first)
7. Fix /etc/fstab
Comment out the /boot and /boot/efi entries.
Determine the UUID of the new ESP partition:
# blkid /dev/<new-esp>
You want the short one with the hyphen in the middle, not the PARTUUID. Copy the old EFI line and update the UUID *AND* the path to just /boot
8. The real PITA part I had to figure out. Since we're not using GRUB anymore, none of the crap it puts in EFI/fedora matters to systemd-boot, namely the kernel options.
Open up EFI/fedora/grubenv and locate the kernel options (kernelopts). Copy the contents and then open up
/boot/loader/entries/<guid>-<kernel>.conf.
Swap out the $kernelopts with the stuff you copied from grubenv.
Reboot!
Things left to fix:
1. Get it working with secure boot
2. Figure out how to keep the kernel options after kernel update.
Thanks,
Richard
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx