Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] genkernel clobbers my .config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 131

PostPosted: Fri Feb 21, 2014 2:55 am    Post subject: [SOLVED] genkernel clobbers my .config Reply with quote

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
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 376
Location: Canada

PostPosted: Fri Feb 21, 2014 7:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10279
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Feb 21, 2014 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
fincoop
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 131

PostPosted: Fri Feb 21, 2014 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum