Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

GRUB doesn't show boot options (fresh install)

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
shovel
n00b
n00b
Posts: 4
Joined: Mon Mar 23, 2026 10:38 pm

GRUB doesn't show boot options (fresh install)

  • Quote

Post by shovel » Mon Mar 23, 2026 10:53 pm

I am currently trying to install gentoo on an old laptop. I already went through the handbook but after I reboot GRUB shows only UEFI firmware settings.

Laptop specs:
CPU: Intel Core i5-8300H
GPU: GTX 1050 mobile
RAM: 12GB

I have three partitions:

Code: Select all

/dev/sda1 /efi
/dev/sda2 swap
/dev/sda3 /
This is how some directories look like:

Code: Select all

$ ls efi/EFI/gentoo
grubx64.efi

$ ls /boot
amd-uc.img grub

$ls /boot/grub
fonts grub.cfg grubenv locale themes x86_64-efi
installkernel had grub and dracut marked
I used gentoo-kernel package
I use OpenRC

I think that the problem is that there is no kernel in /boot but I have no idea how to fix that.
Top
pietinger
Administrator
Administrator
Posts: 6639
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: GRUB doesn't show boot options (fresh install)

  • Quote

Post by pietinger » Mon Mar 23, 2026 11:53 pm

shovel,

Welcome to Gentoo Forums! :D
shovel wrote:[...] I think that the problem is that there is no kernel in /boot [...]
Yes, you miss the kernel in /boot. Have you emerged the gentoo-kernel or the gentoo-kernel-bin?
shovel wrote:[...] but I have no idea how to fix that.
No problem ... it is easy:

1. Boot with our GentooLiveCD or Admin-/minimalCD and then
2. Change (chroot) into your installation (these are the steps: https://wiki.gentoo.org/wiki/User:Pieti ... stallation)
3. Now you have the same situation as you had with your initial installation. Re-emerge the gentoo-kernel (or -bin) (and check again if it is in /boot)
(see also: https://wiki.gentoo.org/wiki/User:Pieti ... tem#Kernel )
4. ... and make sure this kernel is configured in the /boot/grub/grub.cfg (*)

*) Usually the installkernel does a grub-mkconfig when the Use-flag "grub" is enabled ... but ... you can safely do it manually again:

Code: Select all

# grub-mkconfig -o /boot/grub/grub.cfg
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
shovel
n00b
n00b
Posts: 4
Joined: Mon Mar 23, 2026 10:38 pm

  • Quote

Post by shovel » Tue Mar 24, 2026 4:45 pm

I've tried reinstalling it but I get this messsage when installing gentoo-kernel-bin:

Code: Select all

Chroot detected

WARNING: Dracut will be run from inside a chroot but no
cmdline for dracut was configured. Dracut would fallback
to using /proc/cmdline, which is generally not what you
want. Exiting...

Please specify a command line to use in /etc/cmdline or
/etc/cmdline.d/. Or set the kernel_cmdline in a dracut
configuration file.

Override this check with:
    touch /etc/kernel/preinst.d/05-check-chroot.install

ERROR: Installing 6.18.18-gentoo-dist failed
 * 
 * The kernel was not deployed successfully. Inspect the failure
 * in the logs above and once you resolve the problems please
 * run the equivalent of the following command to try again:
 * 
 *     emerge --config '=sys-kernel/gentoo-kernel-bin-6.18.18:6.18.18'
 * ERROR: sys-kernel/gentoo-kernel-bin-6.18.18::gentoo failed (postinst phase):
 *   Kernel install failed, please fix the problems and run emerge --config
 * 
 * Call stack:
 *     ebuild.sh, line  143:  Called pkg_postinst
 *   environment, line 1322:  Called kernel-install_pkg_postinst
 *   environment, line 1001:  Called kernel-install_install_all '6.18.18-gentoo-dist'
 *   environment, line  987:  Called dist-kernel_install_kernel '6.18.18-gentoo-dist' '/usr/src/linux-6.18.18-gentoo-dist/arch/x86/boot/bzImage' '/usr/src/linux-6.18.18-gentoo-dist/System.map'
 *   environment, line  666:  Called die
 * The specific snippet of code:
 *           die "Kernel install failed, please fix the problems and run emerge --config";
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.18.18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.18.18::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/empty'
 * S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/work'
 * FAILED postinst: 1

>>> Completed (1 of 2) sys-kernel/gentoo-kernel-bin-6.18.18::gentoo

>>> Failed to install sys-kernel/gentoo-kernel-bin-6.18.18, Log file:

>>>  '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/temp/build.log'

 * Messages for package sys-kernel/gentoo-kernel-bin-6.18.18:

 * FAILED postinst: 1
 * The kernel was not deployed successfully. Inspect the failure
 * in the logs above and once you resolve the problems please
 * run the equivalent of the following command to try again:
 *     emerge --config '=sys-kernel/gentoo-kernel-bin-6.18.18:6.18.18'
 * ERROR: sys-kernel/gentoo-kernel-bin-6.18.18::gentoo failed (postinst phase):
 *   Kernel install failed, please fix the problems and run emerge --config
 * Call stack:
 *     ebuild.sh, line  143:  Called pkg_postinst
 *   environment, line 1322:  Called kernel-install_pkg_postinst
 *   environment, line 1001:  Called kernel-install_install_all '6.18.18-gentoo-dist'
 *   environment, line  987:  Called dist-kernel_install_kernel '6.18.18-gentoo-dist' '/usr/src/linux-6.18.18-gentoo-dist/arch/x86/boot/bzImage' '/usr/src/linux-6.18.18-gentoo-dist/System.map'
 *   environment, line  666:  Called die
 * The specific snippet of code:
 *           die "Kernel install failed, please fix the problems and run emerge --config";
 * If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-bin-6.18.18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-bin-6.18.18::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/empty'
 * S: '/var/tmp/portage/sys-kernel/gentoo-kernel-bin-6.18.18/work'

 * GNU info directory index is up-to-date.

 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 6 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

I started by reemerging installkernel with grub and dracut flags.
Top
zen_desu
Guru
Guru
Posts: 502
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Tue Mar 24, 2026 5:09 pm

shovel wrote:I've tried reinstalling it but I get this messsage when installing gentoo-kernel-bin:

I started by reemerging installkernel with grub and dracut flags.
You can avoid that issue using ugrd ;)

that is to warn you that dracut will read the cmdline from the livecd and will have issues unless you give it some config
µgRD dev
Wiki writer
Top
shovel
n00b
n00b
Posts: 4
Joined: Mon Mar 23, 2026 10:38 pm

  • Quote

Post by shovel » Tue Mar 24, 2026 5:16 pm

so I should just add ugrd flag in installkernel or something else? Thanks
Top
zen_desu
Guru
Guru
Posts: 502
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Tue Mar 24, 2026 5:18 pm

shovel wrote:so I should just add ugrd flag in installkernel or something else? Thanks
yeah it's just an installkernel flag, it's an alternative to dracut (made for gentoo and quite a bit simpler)
µgRD dev
Wiki writer
Top
shovel
n00b
n00b
Posts: 4
Joined: Mon Mar 23, 2026 10:38 pm

  • Quote

Post by shovel » Tue Mar 24, 2026 5:31 pm

Thank you for your help :D
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Wed Mar 25, 2026 9:17 pm

zen_desu wrote:
shovel wrote:I've tried reinstalling it but I get this messsage when installing gentoo-kernel-bin:

I started by reemerging installkernel with grub and dracut flags.
You can avoid that issue using ugrd ;)

that is to warn you that dracut will read the cmdline from the livecd and will have issues unless you give it some config
I think it would be helpful not just for this user but other users to explain what actually happens here.

dracut probes /proc/cmdline when creating an initramfs and uses those arguments because they may be needed to boot the system. People often want that when running a real system with their own kernel, but inside of a live environment, it's undesirable.

We install a hook that makes installkernel error out rather than assume. ugrd will have its own logic for figuring out when to use the running machine's cmdline which may well not be flawless either.

The real issue here is just that the handbook should make clearer what is happening, why, and how to handle it.

EDIT: There's [bug=971572]bug 971572[/bug] about this now too.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic