Forums

Skip to content

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

genkernel config

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
4 posts • Page 1 of 1
Author
Message
deathraccoon
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Tue Jan 27, 2015 10:14 am

genkernel config

  • Quote

Post by deathraccoon » Thu Dec 17, 2015 6:41 pm

I am using genkernel. when I invoke it as:

genkernel --lvm --luks --menuconfig all

it fails to use existing config. It neither uses the one in /etc/kernels nor the one in /usr/src/linux

I have tried copyng over the *.bak configs to .config and /etc/kernels however it still fails to use the existing files..
Last edited by deathraccoon on Thu Dec 17, 2015 8:00 pm, edited 1 time in total.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Thu Dec 17, 2015 7:02 pm

The default is not to use the existing config. The default is to use the config set by variable DEFAULT_KERNEL_CONFIG in /etc/genkernel.conf

You can override on the command line, see "man genkernel"

You can also set luks (EDIT: and lvm) in /etc/genkernel.conf. The default is "no", but you can change it to "yes".


I override on the command line with a simple one line shell script. Two lines counting the shebang.
Top
deathraccoon
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Tue Jan 27, 2015 10:14 am

  • Quote

Post by deathraccoon » Thu Dec 17, 2015 7:58 pm

thank you. when --old-config is set to yes, whcih config does it use? do mrproper and clean affect this?

I will go over the man page again. this is odd as I've been using Gentoo off and on for some time and never had this occur, leaving the genkernel.conf alone and invoking options from the console is how I had done it in the past.

I even invoked --kernel-config=/path/to/config-file and pointed it to ./usr/src/linux/.config-*.bak I had checked that configuration, and it was correct, but genkernel did not use it.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sat Dec 19, 2015 1:51 am

Don't know if --old-config et cetera do or not. I suspect not. Those options should affect what happens to the config after it has been selected.

I would not keep even backups in /usr/src/linux. Genkernel and the kernel make process do too much there.

This is what I do:

Code: Select all

zcat /proc/config.gz >/root/config.now && genkernel --menuconfig --install --kernel-config=/root/config.now  --bootloader=grub all
That depends on having CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC set. Currently, they are under "general setup" ->"kernel .config support" and "general setup"->" Enable access to .config through /proc/config.gz" in the menu. This feature is handu for checking your running kernel.

Which version of genkernel are you running? Mine is 3.4.52.2

Genkernel is written in bash. If you read shell, you can figure out what it does. I did that to figure out how it was updating /boot/grub/grub.conf so I could steal the code. It wasn't easy to figure out, but then I'm very weak at shell.
Top
Post Reply

4 posts • Page 1 of 1

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