Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what is enabled in kernel?[solved]
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
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Sat Jul 18, 2015 9:19 am    Post subject: what is enabled in kernel?[solved] Reply with quote

hello gentoo people,

I have neglected my gentoo system for over two months, and update is a total mess.

I decided to reinstall gentoo, but i am afraid of this kernel...
is there a way to see what is enabled in current kernel, so I can enable them in my new installation?

I looked in /usr/src/linux, but I could not know what is what.

Thank you
_________________
Kind regards, Goran Mitic

alive
while true
kick ass


Last edited by while true on Sun Jul 19, 2015 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3135

PostPosted: Sat Jul 18, 2015 9:32 am    Post subject: Reply with quote

You most likely can get config from your active kernel. AFAIR this option is enabled by default, so just go for
zcat /proc/config.gz
Dump the output to file and later save as /usr/src/linux/.config and build kernel with --oldconfig
Alternatively you can copy .config from your previous kernel sources directory.

Also, updating 2 months old installation is not so bad, in worst case emerge -aeuDN world should do the trick. Even if it takes ages to complete.
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Sat Jul 18, 2015 9:51 am    Post subject: Reply with quote

Code:
kishta grom #  zcat /proc/config.gz > myKernel
gzip: /proc/config.gz: No such file or directory
kishta grom #


for update, i have issue with:
Code:
kishta grom # eix-sync
 * Running emerge --sync
>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
!!! getaddrinfo failed for 'rsync1.at.gentoo.org': Name or service not known
>>> Starting rsync with rsync://rsync1.at.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: rsync1.at.gentoo.org 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.1]
>>> Retrying...
!!! Exhausted addresses for rsync1.at.gentoo.org
 * emerge --sync failed
 * Time statistics:
     1 seconds for syncing
     1 seconds total
kishta grom # emerge --sync
>>> Synchronization of repository 'gentoo' located in '/usr/portage'...
!!! getaddrinfo failed for 'rsync1.at.gentoo.org': Name or service not known
>>> Starting rsync with rsync://rsync1.at.gentoo.org/gentoo-portage...
>>> Checking server timestamp ...
rsync: getaddrinfo: rsync1.at.gentoo.org 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.1]
>>> Retrying...
!!! Exhausted addresses for rsync1.at.gentoo.org
kishta grom #

_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
jonathan183
Guru
Guru


Joined: 13 Dec 2011
Posts: 318

PostPosted: Sat Jul 18, 2015 10:15 am    Post subject: Re: what is enabled in kernel? Reply with quote

I suggest you take a copy of /usr/src/linux/.config on your existing system.
To be honest you should be able to update a system which has 2 months worth of updates, but if you decide to do a fresh install then I suggest you copy the /etc tree from your existing install so you can copy config information back on to your new install rather than configure everything from scratch.
There are a few other files it's worth taking of a copy of as well, the world file means you will have a list of packages you installed.
Back to top
View user's profile Send private message
EmaRsk
Apprentice
Apprentice


Joined: 07 Sep 2004
Posts: 158
Location: Italy

PostPosted: Sat Jul 18, 2015 1:57 pm    Post subject: Reply with quote

@while true, there are a few places where the kernel config could be:
  • /proc/config.gz (if you enabled IKCONFIG and IKCONFIG_PROC in the kernel)
  • If you enabled IKCONFIG as a module, you need to "modprobe configs" to see /proc/config.gz
  • If you enabled IKCONFIG (not as module), but not IKCONFIG_PROC, you can still extract the config from the kernel image with /usr/src/linux/scripts/extract-ikconfig (I haven't tested this one)
  • /boot/config-*
  • /usr/src/linux/.config
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sat Jul 18, 2015 3:51 pm    Post subject: Reply with quote

Code:
kishta grom #  zcat /proc/config.gz > myKernel
gzip: /proc/config.gz: No such file or directory
kishta grom #


afaik

zcat /proc/config.gz >> myKernel


and check if dhcp is running

Code:

ifconfig -a


Code:
route
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Sat Jul 18, 2015 10:46 pm    Post subject: Reply with quote

hey guys, thanks for input

I managed to make a copy of /usr/src/linux/.config file to mach against my new installation, which is almost done, i am having some network issiues which i posted over in Network.

Cheers
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
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