Hello list,

I'm trying to fix my system boot arrangements. I did have a fully working 
system, but something happened a few weeks ago and now I'm struggling. This is 
what I have at the moment:

# grep nvm /etc/fstab
/dev/nvme0n1p4  /                       ext4    defaults,relatime       1 1
/dev/nvme0n1p2  /boot                   vfat    discard,noauto,noatime  1 2
/dev/nvme0n1p5  /var                    ext4    defaults,relatime       1 2
/dev/nvme0n1p6  /home                   ext4    defaults,relatime       1 2
/dev/nvme0n1p7  /home/prh/common        ext4    defaults,relatime       1 3
/dev/nvme0n1p8  /usr/local              ext4    defaults,relatime       1 2
[...]

# tree /boot
/boot
├── config-4.19.72-gentoo
├── early_ucode.cpio
├── EFI
│   ├── boot
│   │   └── bootx64.efi
│   └── Gentoo
│       └── vmlinuz-4.19.72.efi
├── intel-uc.img
├── loader
│   ├── entries
│   │   ├── 30-gentoo-4.19.72.conf
│   │   ├── 32-gentoo-4.19.72.nox.conf
│   │   └── 34-gentoo-4.19.72.nonet.conf
│   └── loader.conf
├── System.map-4.19.72-gentoo
└── vmlinuz-4.19.72-gentoo

# cat /boot/loader/loader.conf
default 30-gentoo-4.19.72
timeout 15

# cat /boot/loader/entries/30-gentoo-4.19.72.conf
title Gentoo Linux 4.19.72
linux /vmlinuz-4.19.72-gentoo
options root=/dev/nvme0n1p4 initrd=/intel-uc.img net.ifnames=0

# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* Gentoo Linux
Boot0001* CD/DVD Drive 
Boot0002* Hard Drive 
Boot0003* UEFI OS

Now, I can make the system bootable by issuing the following commands:

# efibootmgr -b 0 -B
# efibootmgr --disk /dev/nvme0n1 --part 2 --create --label "Gentoo Linux" --
loader '\EFI\Gentoo\vmlinuz-4.19.72.efi' --unicode 'root=/dev/nvme0n1p4 
initrd=/intel-uc.img net.ifnames=0'

At the next reboot, the UEFI BIOS starts the system directly; it doesn't show 
a menu of boot images. But I want that list so that I can choose which image 
to boot.

Now if I repeat those last two commands but with "--unicode '...'" omitted, 
expecting those values to be picked up from /boot/loader/entries/30-
gentoo-4.19.72.conf, the BIOS starts some unconfigured kernel - which panics 
because it can't find its filesystem. Again, it doesn't show me a menu, just 
goes for it.

I may have the directory layout wrong under /boot, and that may be my problem. 
I think I used a layout from systemd-boot, which I no longer use.

Can anyone see what I'm doing wrong? Do I have to go back to bootctl from 
systemd-boot?

-- 
Regards,
Peter.




Reply via email to