Forums

Skip to content

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

[SOLVED] Cannot set GRUB_CFG?

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
2 posts • Page 1 of 1
Author
Message
Korhul
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 77
Joined: Mon May 09, 2005 5:59 pm
Location: Czech Republic
Contact:
Contact Korhul
Website

[SOLVED] Cannot set GRUB_CFG?

  • Quote

Post by Korhul » Thu Mar 26, 2026 1:44 pm

Hello,
I am using installkernel togerther with GRUB and dracut to install and update my kernel. I use custom location for grub.cfg per Handbook and want to set GRUB_CFG. However after setiing env config, running emerge --config gentoo-kernel still uses default /boot/grub/grub.cfg

Code: Select all

alwaid3 ~ # cat /etc/env.d/99grub 
GRUB_CFG="/boot/EFI/gentoo/grub.cfg"

Code: Select all

alwaid3 ~ # env | grep GRUB_CFG
GRUB_CFG=/boot/EFI/gentoo/grub.cfg

Code: Select all

Running /usr/lib/kernel/postinst.d/91-grub-mkconfig.install 6.19.6-gentoo-dist /boot/EFI/Linux/gentoo-6.19.6-gentoo-dist.efi...

 Backing up existing grub config as /boot/grub/grub.cfg~...
 Generating new GRUB config as /boot/grub/grub.cfg...
Generating grub configuration file ...
Found theme: /boot/grub/themes/breeze/theme.txt
Found unified kernel image: /boot/EFI/Linux/gentoo-6.19.6-gentoo-dist.efi
Found unified kernel image: /boot/EFI/Linux/gentoo-6.19.6-gentoo-dist-old.efi
Found unified kernel image: /boot/EFI/Linux/gentoo-6.17.10-x86_64.efi
Found unified kernel image: /boot/EFI/Linux/gentoo-6.17.10-x86_64-old.efi
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
mount: /var/lib/os-prober/mount: fsconfig() failed: No such file or directory.
       dmesg(1) may have more information after failed mount system call.
Found Windows Boot Manager on /dev/nvme0n1p5@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
Anyone can help me, please or is it just a bug?
Last edited by Korhul on Fri Mar 27, 2026 9:19 am, edited 1 time in total.
Top
Korhul
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 77
Joined: Mon May 09, 2005 5:59 pm
Location: Czech Republic
Contact:
Contact Korhul
Website

  • Quote

Post by Korhul » Fri Mar 27, 2026 9:19 am

Apparently $GRUB_CFG is being stored in ebuild environment. When you use binary package which was built while $GRUB_CFG haven't been set and then install it, it won't accept new settings. You must rebuild sys-kernel/gentoo-kernel, running only emerge --config does not work.
Top
Post Reply

2 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