Yesterday, Phoronix posted an article about Ubuntu switching back to GRUB2 for UEFI secure boot. In the comments, Kano (a Kanotix developer) floated the idea of not using GRUB on a UEFI system. I mentioned that's something I plan to learn; Kano replied with instructions on how to set it up.
I tested it, and can report that it works perfectly on Quantal. My T520 has a UEFI NVRAM variable pointing directly to the kernel. I created a second one, with the recovery kernel boot option, because it seemed like a good idea. Here is a dump of my EFI boot manager:
(I've taken some liberties with the formatting: I removed the variables that reference the UEFI's internal menu options, I've added line breaks in the variables, and I've deleted the periods that normally sit between each letter in the boot parameters -- a Unicode artifact.)
Boot001B boots the kernel from the EFI partition and the initrd from the root file system. Boot001A boots both the kernel and the initrd from the EFI partition; it takes about one second longer. I've asked for clarification why. Boot0019 is recovery mode. The default is Boot001B; to choose one of the others, I press [F12] during startup to see the UEFI boot manager menu.
It's nice not having to mess with GRUB! GRUB is certainly overkill for a single-OS machine. It'll be interesting to see what happens when a kernel update comes down the 'tubes. There appear to be no configuration scripts for this kind of setup, so I'll need to manually copy the newer vmlinuz and initrd from /boot to /boot/efi/EFI/ubuntu. And yes, I've purged all of GRUB from my computer.
I'll update this thread with any new developments.
I tested it, and can report that it works perfectly on Quantal. My T520 has a UEFI NVRAM variable pointing directly to the kernel. I created a second one, with the recovery kernel boot option, because it seemed like a good idea. Here is a dump of my EFI boot manager:
Code:
steve@t520:~$ [B]sudo efibootmgr -v[/B] BootCurrent: 001B Timeout: 0 seconds BootOrder: 001B,001A,0019,0006,000C,0007,000A,0008,000D,000E,000F,000B,0009,0011,0012,0010,0013 --- Boot0019* Ubuntu recovery mode HD(1,28,100000,35a3de7a-7015-4855-b882-1c8e9432b8fe) File(\EFI\ubuntu\linux.efi) root=UUID=fc16861b-bbd1-4c97-8d70-49839f97db83 ro nox2apic noop nomodeset recovery initrd=EFI\ubuntu\initrd.img Boot001A* Ubuntu direct with initrd HD(1,28,100000,35a3de7a-7015-4855-b882-1c8e9432b8fe) File(\EFI\ubuntu\linux.efi) root=UUID=fc16861b-bbd1-4c97-8d70-49839f97db83 ro nox2apic noop acpi_osi=Linux pcie_aspm=force raid=noautodetect initrd=EFI\ubuntu\initrd.img Boot001B* Ubuntu direct HD(1,28,100000,35a3de7a-7015-4855-b882-1c8e9432b8fe) File(\EFI\ubuntu\linux.efi) root=PARTUUID=5d630312-d283-4812-94f9-d6ca92b966f5 ro nox2apic noop acpi_osi=Linux pcie_aspm=force raid=noautodetect
Boot001B boots the kernel from the EFI partition and the initrd from the root file system. Boot001A boots both the kernel and the initrd from the EFI partition; it takes about one second longer. I've asked for clarification why. Boot0019 is recovery mode. The default is Boot001B; to choose one of the others, I press [F12] during startup to see the UEFI boot manager menu.
It's nice not having to mess with GRUB! GRUB is certainly overkill for a single-OS machine. It'll be interesting to see what happens when a kernel update comes down the 'tubes. There appear to be no configuration scripts for this kind of setup, so I'll need to manually copy the newer vmlinuz and initrd from /boot to /boot/efi/EFI/ubuntu. And yes, I've purged all of GRUB from my computer.
I'll update this thread with any new developments.
Comment