View previous topic :: View next topic |
Author |
Message |
fincoop Tux's lil' helper
Joined: 02 Feb 2004 Posts: 143
|
Posted: Fri Feb 21, 2014 2:55 am Post subject: [SOLVED] genkernel clobbers my .config |
|
|
Hello all,
I have been using genkernel for some time since I started depending on an initrd. I started using genkernel all because it does a nice job of rotating the /boot files and modifying my grub.conf. What I don't like however, is that my /usr/src/linux/.config is clobbered every time I run genkernel. I like to do 'make menuconfig' on my own, then have genkernel compile and install along with the initrd. I have been copying it back from /etc/kernels/ before doing make menuconfig, but that feels like a workaround.
Are you aware of a way to prevent genkernel from overwriting .config?
Thanks!
Last edited by fincoop on Fri Feb 21, 2014 10:00 pm; edited 1 time in total |
|
Back to top |
|
|
nlsa8z6zoz7lyih3ap Guru
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Fri Feb 21, 2014 7:04 pm Post subject: |
|
|
Have you tried using Code: | genkernel --kernel-config=/usr/src/linux/.config? |
I rarely use genkernel, but when I did I used make menuconfig without genkernel, copied /usr/src/linux/.config to /usr/src/config
and then ran
Code: |
genkernel --kernel-config=/usr/src/config |
I can't guarantee that this will meet your needs, but I make the suggestion as I see no other replies.
PS what about writing your own bash script that does the copying and runs genkernel? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Feb 21, 2014 7:58 pm Post subject: |
|
|
See the --oldconfig command line option and the OLDCONFIG="yes" /etc/genkernel.conf option. Both preserve the existing .config file in the kernel source directory.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
fincoop Tux's lil' helper
Joined: 02 Feb 2004 Posts: 143
|
Posted: Fri Feb 21, 2014 10:00 pm Post subject: |
|
|
John R. Graham wrote: | See the --oldconfig command line option and the OLDCONFIG="yes" /etc/genkernel.conf option. Both preserve the existing .config file in the kernel source directory.
- John |
Thank you very much. I re-read the genkernel man page. It states that oldconfig implies clean and mrproper steps. Clean erases compiled files, while mrproper erases compiled files and the kernel configuration. So, if I want the compilation environment to be fresh for every build, but maintain the configuration file, then I should configure: Code: | CLEAN="yes"
MRPROPER="no" | to genkernel.conf. |
|
Back to top |
|
|
|