If you do not state the devicename, how does grub choose the correctdrive? I don't want to overwrite the bootloader on the ssd.There is only one correct ESP partition in EFI system to install bootloader to. You can read the code finding it at https://github.com/rhboot/grub2/blob/master/util/grub-install.c#L1029