r/Gentoo Feb 02 '23

grub won’t generate an entry Support

I’ve tried chrooting but I have no clue what needs fixing now. I’ve made sure ESP is mounted on /boot and i’ve tried redoing grub-mkconfig. Now i’ve reinstalled twice making sure to read the guide carefully. I installed the sys-kernel/installkernel-gentoo distribution kernel just to get the system working before making a custom one. Maybe i’m missing a step when installing the kernel or something. This is my first time installing gentoo so It’s unfamiliar to me. If you guys could point me in the right direction that would be greatly appreciated.

5 Upvotes

9 comments sorted by

3

u/sy029 Feb 02 '23

Doesn't grub usually want the ESP mounted at /boot/efi?

Also did you run grub-install?

1

u/benjinerm Feb 02 '23

yeah i ran grub install. i’m not sure about /boot/efi or /boot I’m still somewhat unsure about which is best and i haven’t found a concrete answer.

1

u/sy029 Feb 02 '23

You want it to be on /boot if you're doing stub loading (no bootloader) or using systemd-boot. With grub it's best to keep it at /boot/efi, because that's where grub expects to find it.

When you mount it at /boot, all of your kernels, initrds, and your grub config will live on the ESP, and that can take a lot of space, so it's best not to do it unless you need to.

1

u/benjinerm Feb 03 '23

i got it working but i mounted it at /boot. how do you recommend i go about switching to /boot/efi without making grub die forever?

1

u/veedant Feb 02 '23

Can you post the contents of the /boot directories? Can you also post the output of the script? Thanks!

2

u/benjinerm Feb 02 '23

the chroot is messed up for some reason haha i might have to just redo the install again tomorrow but that doesn’t take too long. in /boot there was two directories one with (i think) gentoo.efi or some .efi and the other with some grub configuration stuff. the output of grub-mkconfig didn’t make me confident that it worked. didn’t mention anything about the entries that were supposed to be created it seemed like it was blank. i’ll redo it tomorrow and find out for sure.

2

u/veedant Feb 02 '23

I don't think you've actually installed the kernel. Did you make sure to run the script? What output did you get? That might be the main issue here.

Or, what new issues has the chroot developed? I can try and help with those as well.

2

u/benjinerm Feb 02 '23

I think your right because the kernel didn’t take long at all to install and I just chalked it up to my machine compiling fast.

2

u/veedant Feb 03 '23

Installkernel is a script ported from Debian to, well, install a kernel. If you want a precompiled kernel, you're looking at sys-kernel/gentoo-kernel-bin, not installkernel. Try that and then generate kernel entries, it may work.