You are not logged in.

#1 2023-08-24 01:49:19

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Hi, I've followed Installation_guide for first time (several times) and can't make a grub menu with entries but "UEFI firmware".
The structure of boot partition "/dev/nvme0n1p1" mounted on "/boot", result of many attempts with bootctl, grub-install, grub-mkconfig, is:
EFI
                             10_linux
                              BOOT
                              EFI
                              Linux
                              arch
                              grub.cfg
                              systemd
grub
                              fonts
                              grub.cfg
                              grubenv
                              locale
                              themes
                              x86_64-efi
grub.cfg
intel-ucode.img
loader
                             entries
                             entries.srel
                             loader.conf
                             random-seed

The content of "/boot/loader/entries/arch.conf":

title Arch Linux
linux EFI/arch/vmlinuz
initrd /intel-ucode.img
initrd EFI/arch/initramfs.img
option root=UUID=myuuid rw

The output of "bootctl" contains:

Available boot loaders on ESP:
ESP: /boot
File: /EFI/systemd/systemd-bootx64.efi, /EFI/BOOT/BOOTX64.efi
Bootloaders listed in EFI var:
10_linux, arch, Linux Boot Manager,UEFI OS
Boot loader entries:
$BOOT: /boot, token:arch
Default boot loader entry:  title: "Arch Linux", id: arch.conf

Any Suggestion?

Best Regards

Last edited by AlexBeer (2023-08-26 01:57:08)

Offline

#2 2023-08-24 01:56:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Did you not install a kernel?

Offline

#3 2023-08-24 02:03:06

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

I've installed base linux linux-firmware(?) in installation phase. Thought linux was default kernel.

Offline

#4 2023-08-24 02:04:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

it is, so why is it not listed when you listed everything in /boot?

Offline

#5 2023-08-24 02:10:10

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Well, I've copied /usr/lib/modules/6.4.11-arch2-1/vmlinuz into EFI/arch, but being inside modules make me doubt now that it may not be the kernel.. .

Offline

#6 2023-08-24 02:20:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

It is, but why in the world would you do that? Did you not have the /boot partition mounted when you installed the kernel? Have something else mounted there? Something has gone very wrong.

Very little on your ESP makes sense. Tell us what you actually did.

Offline

#7 2023-08-24 02:20:06

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Ok, reinstalling linux pkg I have vmlinuz-linux and initramfs images in /boot, so I just have to adjust the content of /boot/loader/entries/arch.conf to the right kernel and initramfs? And the run grub-mkconf -o /boot7grub.cfg?

Offline

#8 2023-08-24 02:30:44

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Scimmia wrote:

It is, but why in the world would you do that? Did you not have the /boot partition mounted when you installed the kernel? Have something else mounted there? Something has gone very wrong.

Very little on your ESP makes sense. Tell us what you actually did.

I've forgotten I have run mkfs.fat -F 32 on EFI partition after Arch installation since at first boot after installation I only get a count down to reboot to UEFI Firmware, now I have I grub menu, empty but forone entry which is reboot to UEFI firmware

Offline

#9 2023-08-24 03:09:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

well that explains that part of it, at least. When you formatted it, you lost the kernel/initramfs.

Now, why do you have systemd-boot and grub? Why do you have 3 grub.cfg files? What, exactly, is EFI/10_linux, EFI/Linux, and EFI/arch? What are you actually booting?

Last edited by Scimmia (2023-08-24 03:12:01)

Offline

#10 2023-08-24 03:51:03

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Those files and directories are result of my attempts with bootctl install, grub-install and grub-mkconfig, probably also with systemd-boot(?) Maybe just missing intel-ucode.img (and/or initramfs-vmlinuz) during Arch installation.
I'll try delete everything except initramfs-linux-fallback.img, initramfs-linux.img intel-ucode.img, vmlinuz-linux, and then grub-install, and grub-mkconfig (well, this may be not needed): it's the right direction?

Offline

#11 2023-08-24 05:08:28

AlexBeer
Member
Registered: 2023-08-24
Posts: 22

Re: Empty boot menu: how generate .cfg file using folder grub.d? [Solved]

Finally I got my grub menu; grub.cfg goes into grub dir!

Offline

Board footer

Powered by FluxBB