1 |
On Friday, 25 October 2019 15:28:27 BST Peter Humphrey wrote: |
2 |
|
3 |
> At the next reboot, the UEFI BIOS starts the system directly; it doesn't |
4 |
> show a menu of boot images. But I want that list so that I can choose which |
5 |
> image to boot. |
6 |
|
7 |
The UEFI firmware does not display a list of bootable devices the user could |
8 |
choose from, *unless* you enter the firmware/BIOS GUI before booting of an OS |
9 |
commences, or you boot into a UEFI shell application. To launch the UEFI |
10 |
firmware/BIOS GUI usually requires pressing F2 on start up or some FXX button, |
11 |
depending on the MoBo. On some laptops there is a separate button for this |
12 |
purpose. |
13 |
|
14 |
|
15 |
> Now if I repeat those last two commands but with "--unicode '...'" omitted, |
16 |
> expecting those values to be picked up from /boot/loader/entries/30- |
17 |
> gentoo-4.19.72.conf, the BIOS starts some unconfigured kernel - which panics |
18 |
> because it can't find its filesystem. Again, it doesn't show me a menu, |
19 |
> just goes for it. |
20 |
|
21 |
Without the '--unicode' option the efibootmgr uses ASCII to pass extra command |
22 |
line arguments, so it could well be your root, initrd, or net options are mis- |
23 |
translated and/or ignored. |
24 |
|
25 |
Entries in /boot/loader/entries/30-gentoo-4.19.72.conf are parsed and |
26 |
interpreted by the systemd-boot Boot Manager application, not by the UEFI |
27 |
firmware itself. |
28 |
|
29 |
|
30 |
> I may have the directory layout wrong under /boot, and that may be my |
31 |
> problem. I think I used a layout from systemd-boot, which I no longer use. |
32 |
> |
33 |
> Can anyone see what I'm doing wrong? Do I have to go back to bootctl from |
34 |
> systemd-boot? |
35 |
|
36 |
If you intend to have a list of available OS kernels displayed for you to |
37 |
choose from at boot time, then you need a Boot Manager (eLILO, GRUB, systemd- |
38 |
boot, et al.) and will *have* to follow the respective Boot Manager's |
39 |
conventions regarding its configuration and storage/naming of kernel images. |
40 |
|
41 |
Without a 3rd party Boot Manager you will be using the UEFI firmware's |
42 |
embedded boot manager, which is accessible at start up via the firmware/BIOS |
43 |
GUI, or in some MoBos via the UEFI shell. For those MoBos that support |
44 |
running it, the UEFI shell can be launched with F6, F11 or F12 keys. |
45 |
Otherwise, you may have to install and configure <ESP>/shellx64.efi as the |
46 |
image to boot with. |
47 |
|
48 |
If your think entering the firmware/BIOS GUI, or running UEFI shell commands |
49 |
(bcfg plus options), each time you want to boot an OS will soon wear thin, the |
50 |
use of a 3rd party Boot Manager with its convenient boot menu is probably a |
51 |
more suitable option. |
52 |
|
53 |
PS. Happy to discuss specifics off-list if you think this is less of a Gentoo |
54 |
issue. |
55 |
-- |
56 |
Regards, |
57 |
Mick |