View previous topic :: View next topic |
Author |
Message |
cravengemetzel n00b

Joined: 12 Mar 2012 Posts: 40
|
Posted: Wed Dec 19, 2012 3:54 am Post subject: I am tired of always having to reconfigure genkernel .. |
|
|
I use the Gentoo Testing branch and I love it. But what I don't like is how many hours I spend configuring genkernel options by memory. After each release upgrade, genkernel uses the default options, by default and I have to go through each section and change things (the --oldconfig option doesn't help me here). I realize that keeping the same configuration file through kernel upgrades is unwise and potentially dangerous.
I have an idea for a mid-way solution to this problem. I will probably have to go through menuconfigs very often for the forseeable future, but what consumes the most of my time is realizing that I forgot to address some cryptic detail, then I have to go back through the menuconfig. Is there a way that I could save old configuration files as a text file, and then when I finish compiling a new kernel, save its config file too and have a program analyze both for differences? This would be an amazing help as I have a very exotic system it would seem. Thank you. (: |
|
Back to top |
|
 |
The Doctor Moderator


Joined: 27 Jul 2010 Posts: 2678
|
Posted: Wed Dec 19, 2012 6:00 am Post subject: |
|
|
use --save-config The text file is called .config
Really, There is no good reason why you should not reuse your old .config. If something breaks, that is what the old kernel is for. Is not going to kill your system or anything. My .config has to be more than a year old. make oldnoconfig really does work very well.
EDIT: Use diff or vimdiff to check for differences. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
 |
toralf Developer


Joined: 01 Feb 2004 Posts: 3910 Location: Hamburg
|
Posted: Wed Dec 19, 2012 11:56 am Post subject: |
|
|
I use Code: | genkernel --no-clean --kerneldir=/usr/src/linux-3.$i.x/ | which simplifies life for me. |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10574 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Dec 19, 2012 1:03 pm Post subject: |
|
|
I set those settings (and some others) in /etc/genkernel.conf so that I simplify my command line.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
Cynede Retired Dev


Joined: 30 Nov 2012 Posts: 56
|
Posted: Thu Dec 20, 2012 6:12 am Post subject: |
|
|
I'm using Code: | --oldconfig --menuconfig | ( menuconfig just to be sure that it's using my configuration ) and eventually make .config backups. |
|
Back to top |
|
 |
_______0 Guru

Joined: 15 Oct 2012 Posts: 521
|
Posted: Thu Dec 20, 2012 10:49 am Post subject: |
|
|
I always understood that the .config hack only works with 3.7.X revisions and NOT with 3.X versions. |
|
Back to top |
|
 |
Nreal Apprentice

Joined: 06 Jan 2009 Posts: 243
|
Posted: Thu Dec 20, 2012 10:55 am Post subject: Genkernel |
|
|
I think it is less problematic to do it without genkernel
cp /usr/src/linux/.config /somedir/kernel-config-version
eselect kernel list
eselect kernel set number of choice
cp /somedir/kernel-config-version /usr/src/linux/.config
cd /usr/src/linux
make oldconfig or if lazy make xconfig check that everything seems ok
make && make modules_install
cp arch/x86_64/boot/bz..... /boot/kernel-3.x.x-gentoo
grub2-mkconfig -o /boot/grub2/..
emerge nvidia-drivers
reboot
It was too difficult for me to use genkernel  |
|
Back to top |
|
 |
GFCCAE6xF Apprentice

Joined: 06 Aug 2012 Posts: 295
|
Posted: Thu Dec 20, 2012 11:08 am Post subject: |
|
|
Well if we are sharing tips on kernel updates here is an extract from my .zhistory
Code: | eselect kernel list
eselect kernel set 2
cd /usr/src/linux
cp ../linux-3.7.0-gentoo/.config .
make oldconfig
make nconfig
cp /boot/vmlinuz /boot/vmlinuz-old
make -j3
make modules_install
cp arch/x86_64/boot/bzImage /boot/vmlinuz
emerge @module-rebuild
|
Like The Doctor I have also been using the same kernel .config file for quite some time. You occasionally get some choices pop up with make oldconfig but not often, pretty much set up once and roll with it. |
|
Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 10574 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Dec 20, 2012 11:35 am Post subject: |
|
|
________________________0 wrote: | I always understood that the .config hack only works with 3.7.X revisions and NOT with 3.X versions. | What do you mean by ".config hack"?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
 |
depontius Advocate

Joined: 05 May 2004 Posts: 3476
|
Posted: Thu Dec 20, 2012 1:17 pm Post subject: |
|
|
I use "genkernel --xconfig all" as a "start and walk away" way to build kernels, but I track and keep my own kernel config files. I keep kernel configs in /usr/src with a naming convention that includes the kernel version as well as when I built it. Once xconfig starts I load my last working kernel config, tweak from there, and exit. I then walk away, and when I come back the kernel is done.
I never really messed with genkernel.conf, but I see some interesting stuff there - not the least of which is "-jN", though build time never really bothered me, because I wasn't watching or waiting. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
 |
|