View previous topic :: View next topic |
Author |
Message |
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sat Jul 18, 2015 9:19 am Post subject: what is enabled in kernel?[solved] |
|
|
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3487
|
Posted: Sat Jul 18, 2015 9:32 am Post subject: |
|
|
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 |
|
|
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sat Jul 18, 2015 9:51 am Post subject: |
|
|
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 |
|
|
jonathan183 Guru
Joined: 13 Dec 2011 Posts: 318
|
Posted: Sat Jul 18, 2015 10:15 am Post subject: Re: what is enabled in kernel? |
|
|
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 |
|
|
EmaRsk Apprentice
Joined: 07 Sep 2004 Posts: 158 Location: Italy
|
Posted: Sat Jul 18, 2015 1:57 pm Post subject: |
|
|
@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 |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sat Jul 18, 2015 3:51 pm Post subject: |
|
|
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
|
|
Back to top |
|
|
while true Guru
Joined: 07 Apr 2010 Posts: 532 Location: Ljubljana, Slovenia
|
Posted: Sat Jul 18, 2015 10:46 pm Post subject: |
|
|
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 |
|
|
|