Fedora 25: Installing EFI GRUB with an encrypted root filesystem
I want to install Windows 10 on my computer. During the installation process I got the message that I can't install Windows 10 on my drive where Fedora 25 is currently installed, since the drive still uses MBR instead of GPT. I used the first answer of this question to convert the drive to GPT, which worked flawlessly. But when I tried to upgrade GRUB to GRUB EFI I ran into problems.
Since I can't boot into fedora anymore (when I deleted the old Windows 7 partitions GRUB got corrupted unfortunately) I used a live usb-stick with fedora 25. I used the following steps since I have an encrypted root filesystem:
sudo cryptsetup luksOpen /dev/fedora/00 cryptohome
sudo vgscan
sudo vgchange -a y
sudo mkdir /mnt/sysimage
sudo mount /dev/mapper/cryptohome /mnt/sysimage
sudo mount /dev/sdc1 /mnt/sysimage/boot
sudo mount /dev/sdc2 /mnt/sysimage/boot/efi/
sudo mount --bind /dev /mnt/sysimage/dev
sudo mount --bind /proc /mnt/sysimage/proc
sudo mount --bind /sys /mnt/sysimage/sys
sudo mount -o bind /run /mnt/sysimage/run
sudo chroot /mnt/sysimage
dnf -y reinstall grub2-efi grub2-efi-modules shim
I uploaded the output of fdisk -l to pastebin.
But when I try to start the computer I end up in dracut with the message:
[ 213.443504] localhost.localdomain dracut-initqueue[510]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 213.443682] localhost.localdomain dracut-initqueue[510]: Warning: Could not boot.
[ 213.503629] localhost.localdomain dracut-initqueue[510]: Warning: /dev/mapper/cryptohome does not exist
I uploaded the whole rdsosreport.txt file to pastebin.
I think the problem is caused by the location I use to decrypt my root filesystem. But I'm simply not sure what to do differently.
(I posted this question also on fedoraforum.org)