I had to send in my laptop for repairs, as a result my grub got removed due to recovering windows.
Currently I am trying to reinstall grub using the tumbleweed install dvd (rescue option)
The system graph is like this:
There are 2 hdds, the
/ is encrypted and is /dev/sdb1
/boot/ is not encrypted and is /dev/sda7
/boot/efi is not encrypted and is /dev/sda1
swap is encrypted and is /dev/sdb2
/mnt/Data is a encrypted data partition that is /dev/sda8
due to this configuration, I have my root encrypted but have to enter encryption password only once at plymouth prompt.
system is set to uefi boot and secure boot is on.
I follow the following to reinstall grub:
unlock sdb1(/),sdb2(swap),sda8(data) using cryptsetup luksOpen
then I mount sdb1 to /mnt/
mount sda7 to /mnt/boot
mount sda1 to /mnt/boot/efi
for i in /sys /proc /run /dev; do mount --bind "$i" "/mnt/$i"; done
chroot /mnt
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
after rebooting, grub does not show and goes into dell diagnostics instead.
I am confused whether I have to install grub to /dev/sda or /dev/sdb (grub-install command)