Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED]Can't boot after enabling "savedconfig" USE flag

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
28 posts
  • Previous
  • 1
  • 2
Author
Message
amirz
n00b
n00b
Posts: 14
Joined: Wed Feb 25, 2026 11:38 am

  • Quote

Post by amirz » Fri Feb 27, 2026 11:37 am

OK... I think I know exactly what happened now.
in the wiki the instruction is missing an important part and that is to first copy the default savedconfig file and then change it with menuconfig. As the whole reason of using savedconfig flag is only to tweak small number of options (right?) I think it's appropriate to use the current config as the base.

portage system also acted very strange.
first of all I was expecting that when I delete the savedconfig use flag it would replace the savedconfig file for me but it didn't and just left me with a broken config file.
second, I assumed when I rebuild the kernel it should just delete the old modules directory and make a new one but no, it only installed the new modules and didn't delete the old ones. this looks like a bug to me but maybe there is a reason for this behavior? idk...

after deleting the modules directory everything went back to normal. after building gentoo-kernel I get a message telling me that it did in fact use the savedconfig file. before deleting the modules directory it didn't print it.

thank you zen_desu for your help and also for your awesome initrd tool )
I'll mark this as solved now.
Top
zen_desu
Guru
Guru
Posts: 501
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Sat Feb 28, 2026 1:04 am

amirz wrote:OK... I think I know exactly what happened now.
in the wiki the instruction is missing an important part and that is to first copy the default savedconfig file and then change it with menuconfig. As the whole reason of using savedconfig flag is only to tweak small number of options (right?) I think it's appropriate to use the current config as the base.

portage system also acted very strange.
first of all I was expecting that when I delete the savedconfig use flag it would replace the savedconfig file for me but it didn't and just left me with a broken config file.
second, I assumed when I rebuild the kernel it should just delete the old modules directory and make a new one but no, it only installed the new modules and didn't delete the old ones. this looks like a bug to me but maybe there is a reason for this behavior? idk...

after deleting the modules directory everything went back to normal. after building gentoo-kernel I get a message telling me that it did in fact use the savedconfig file. before deleting the modules directory it didn't print it.

thank you zen_desu for your help and also for your awesome initrd tool )
I'll mark this as solved now.
I'm happy to help.

You hit an interesting bug, because by design I think the install process on gentoo does not clear this dir. I'm not 100% sure why but it may be related to out of tree modules like nvidia and zfs.

In general, it would probably not make sense to clear out the modules dir, but in cases where you remove modules, it will render the remaining module useless even though it exists. I believe depmod looks at all module files and doesn't actually consider if the target kernel supports that module (probably because the module dir is not even required to have a symlink to the related kernel)
µgRD dev
Wiki writer
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat Feb 28, 2026 1:07 am

Right now, depcleaning a kernel leaves the system bootable because it doesn't touch /boot and it doesn't touch /lib/modules. Dropping the entries from UNINSTALL_IGNORE would make it do the latter (I think files in /boot are installed as orphaned so they'd be fine either way).

I don't know what to do about a scenario like was hit here. We could maybe warn on it but it would need to be done with care.
Top
Post Reply

28 posts
  • Previous
  • 1
  • 2

Return to “Kernel & Hardware”

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