1 |
Hello list, |
2 |
|
3 |
I'm trying to fix my system boot arrangements. I did have a fully working |
4 |
system, but something happened a few weeks ago and now I'm struggling. This is |
5 |
what I have at the moment: |
6 |
|
7 |
# grep nvm /etc/fstab |
8 |
/dev/nvme0n1p4 / ext4 defaults,relatime 1 1 |
9 |
/dev/nvme0n1p2 /boot vfat discard,noauto,noatime 1 2 |
10 |
/dev/nvme0n1p5 /var ext4 defaults,relatime 1 2 |
11 |
/dev/nvme0n1p6 /home ext4 defaults,relatime 1 2 |
12 |
/dev/nvme0n1p7 /home/prh/common ext4 defaults,relatime 1 3 |
13 |
/dev/nvme0n1p8 /usr/local ext4 defaults,relatime 1 2 |
14 |
[...] |
15 |
|
16 |
# tree /boot |
17 |
/boot |
18 |
├── config-4.19.72-gentoo |
19 |
├── early_ucode.cpio |
20 |
├── EFI |
21 |
│ ├── boot |
22 |
│ │ └── bootx64.efi |
23 |
│ └── Gentoo |
24 |
│ └── vmlinuz-4.19.72.efi |
25 |
├── intel-uc.img |
26 |
├── loader |
27 |
│ ├── entries |
28 |
│ │ ├── 30-gentoo-4.19.72.conf |
29 |
│ │ ├── 32-gentoo-4.19.72.nox.conf |
30 |
│ │ └── 34-gentoo-4.19.72.nonet.conf |
31 |
│ └── loader.conf |
32 |
├── System.map-4.19.72-gentoo |
33 |
└── vmlinuz-4.19.72-gentoo |
34 |
|
35 |
# cat /boot/loader/loader.conf |
36 |
default 30-gentoo-4.19.72 |
37 |
timeout 15 |
38 |
|
39 |
# cat /boot/loader/entries/30-gentoo-4.19.72.conf |
40 |
title Gentoo Linux 4.19.72 |
41 |
linux /vmlinuz-4.19.72-gentoo |
42 |
options root=/dev/nvme0n1p4 initrd=/intel-uc.img net.ifnames=0 |
43 |
|
44 |
# efibootmgr |
45 |
BootCurrent: 0000 |
46 |
Timeout: 1 seconds |
47 |
BootOrder: 0000,0003,0001,0002 |
48 |
Boot0000* Gentoo Linux |
49 |
Boot0001* CD/DVD Drive |
50 |
Boot0002* Hard Drive |
51 |
Boot0003* UEFI OS |
52 |
|
53 |
Now, I can make the system bootable by issuing the following commands: |
54 |
|
55 |
# efibootmgr -b 0 -B |
56 |
# efibootmgr --disk /dev/nvme0n1 --part 2 --create --label "Gentoo Linux" -- |
57 |
loader '\EFI\Gentoo\vmlinuz-4.19.72.efi' --unicode 'root=/dev/nvme0n1p4 |
58 |
initrd=/intel-uc.img net.ifnames=0' |
59 |
|
60 |
At the next reboot, the UEFI BIOS starts the system directly; it doesn't show |
61 |
a menu of boot images. But I want that list so that I can choose which image |
62 |
to boot. |
63 |
|
64 |
Now if I repeat those last two commands but with "--unicode '...'" omitted, |
65 |
expecting those values to be picked up from /boot/loader/entries/30- |
66 |
gentoo-4.19.72.conf, the BIOS starts some unconfigured kernel - which panics |
67 |
because it can't find its filesystem. Again, it doesn't show me a menu, just |
68 |
goes for it. |
69 |
|
70 |
I may have the directory layout wrong under /boot, and that may be my problem. |
71 |
I think I used a layout from systemd-boot, which I no longer use. |
72 |
|
73 |
Can anyone see what I'm doing wrong? Do I have to go back to bootctl from |
74 |
systemd-boot? |
75 |
|
76 |
-- |
77 |
Regards, |
78 |
Peter. |