Quote:
Originally Posted by chenxiaolong
moonwalker: I just tested Ubuntu 11.04 x64 in UEFI mode since I had the alternate CD laying around. Grub 2 is a mess in Ubuntu under UEFI mode, so I just wanted to make sure I know how Grub 2 works in Debian.
1. Does installing the grub-efi-amd64 package automatically create the /boot/efi/EFI/debian folder (assuming I already mounted the EFI partition)?
2. Are the Grub 2 configuration files stored in /boot/grub or /boot/efi/EFI/debian?
3. If the configuration files are stored in /boot/efi/EFI/debian, does update-grub create the grub.cfg file in the correct directory?
Thanks in advance.
|
I'm not sure what exactly you're referring to with "Grub 2 is a mess in Ubuntu under UEFI mode" as the only issue I've encountered with Ubuntu 11.04 UEFI boot is that I had to use noefi kernel option as with any linux <3.0.0rc2, otherwise it either hangs or reboots immediately after bootloader. As to your questions...:
1. No, you need to use the grub-install command to do that.
2. Standard location, "/boot/grub/". "/boot/efi/" is used strictly for efi files. Or at least should.
3. update-grub does a proper good job of updating grub configuration based on "/etc/default/grub" data. Add in that file 'GRUB_PRELOAD_MODULES="efi_gop"' if you have problems with no visible output after bootloader, it may be unnecessary though if you use KMS+Plymouth but is an absolute must if you have encrypted drives that ask for password before kernel sets the graphical mode. And add "reboot=a,w" in kernel options if it panics on reboot, there is 3.0.0-1 in Debian Unstable repositories already that may have that issue fixed but I haven't tested it yet.
EDIT: Looks like in latest 3.0.0-1 kernel "reboot=a,w" option is not needed anymore, but not because it warm-reboots using a windows-like workaround of the UEFI implementation bug. It rather forces a cold reboot each time, at least in UEFI mode.