I have here a new bought laptop. It's the first device with (U)EFI I was working with. At first I did not get the installation running, so I switched back to BIOS legacy mode and installed ubuntu in that mode.
All right. Now I want to add the preinstalled windows back into the boot loader to allow multiboot. This works only via EFI. So I googled around and found this link. I modified things a bit as I was after some tasting able to boot in efi mode the grub on the live cd and then booted manually into linux.
So in the end I have a grub installed on my EFI system partition and I am able to boot into linux directly from EFI. Now I have seen, that the grub.cfg
has two locations: /boot/grub/
and /boot/efi/EFI/grub/
. On runing update-grub
only the version in /boot/grub/
will be affected. For the (manual) installation this is not an issue but any kernel update will NOT alter the important /boot/efi/EFI/grub/grub.cfg
. I tried creating a symlink but it seems that the file gets deleted before rewriting. So the link is lost.
So my questions in detail:
- What have I to do to make the updates automatically? Should I
mount -o bind
the directory/boot/efi/EFI/grub
to/boot/grub
? Any better solutions? - Is it possible to make grub look into another position?
- Where will an updated
grub.efi
be installed? - Are there other issues that I forgot so far?