* [gentoo-user] gentoo-sources menuconfig feature/weirdness @ 2012-02-23 8:10 Coert Waagmeester 2012-02-23 8:25 ` Mick 2012-02-23 9:25 ` William Kenworthy 0 siblings, 2 replies; 20+ messages in thread From: Coert Waagmeester @ 2012-02-23 8:10 UTC (permalink / raw To: gentoo-user Hello all, Usually on gentoo when gentoo-sources gets updated, updating the kernel went as follows: eselect kernel set {new kernel} cd /usr/src/linux make menuconfig and then there was a totally clean config which I would then customize for the specific setup. On one box I am currently running 3.1.6-gentoo When I start make menuconfig for 3.2.1-gentoo-r2 it would appear as if it got my current config from somewhere, eg local version. Is this a new feature? To make sure of this I unistalled all gentoo-sources pkgs, deleted everything /usr/src/linux* installed the latest gentoo-sources yet it still seems to find the current config somewhere Anyway, just wondering,, Regards, Coert ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 8:10 [gentoo-user] gentoo-sources menuconfig feature/weirdness Coert Waagmeester @ 2012-02-23 8:25 ` Mick 2012-02-23 8:51 ` Coert Waagmeester 2012-02-23 9:25 ` William Kenworthy 1 sibling, 1 reply; 20+ messages in thread From: Mick @ 2012-02-23 8:25 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: Text/Plain, Size: 1371 bytes --] On Thursday 23 Feb 2012 08:10:56 Coert Waagmeester wrote: > Hello all, > > Usually on gentoo when gentoo-sources gets updated, updating the kernel > went as follows: > > eselect kernel set {new kernel} > cd /usr/src/linux > make menuconfig > > and then there was a totally clean config which I would then customize > for the specific setup. > > On one box I am currently running 3.1.6-gentoo > When I start make menuconfig for 3.2.1-gentoo-r2 it would appear as if > it got my current config from somewhere, eg local version. > > Is this a new feature? > > To make sure of this I unistalled all gentoo-sources pkgs, deleted > everything /usr/src/linux* > installed the latest gentoo-sources > yet it still seems to find the current config somewhere > > Anyway, just wondering,, > > Regards, > Coert Where does the /usr/src/linux symlink point to? Here's mine: $ ls -la /usr/src/ total 20 drwxr-xr-x 5 root root 4096 Feb 4 11:40 . drwxr-xr-x 13 root root 4096 Dec 27 09:01 .. -rw-r--r-- 1 root root 0 Dec 16 2010 .keep lrwxrwxrwx 1 root root 30 Feb 4 11:40 linux -> /usr/src/linux-3.2.1- gentoo-r2 drwxr-xr-x 24 root root 4096 Oct 16 16:40 linux-2.6.39-gentoo-r3 drwxr-xr-x 24 root root 4096 Dec 8 21:35 linux-3.0.6-gentoo drwxr-xr-x 24 root root 4096 Feb 18 13:31 linux-3.2.1-gentoo-r2 -- Regards, Mick [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 8:25 ` Mick @ 2012-02-23 8:51 ` Coert Waagmeester 2012-02-23 9:17 ` Neil Bothwick 0 siblings, 1 reply; 20+ messages in thread From: Coert Waagmeester @ 2012-02-23 8:51 UTC (permalink / raw To: gentoo-user On 02/23/2012 10:25 AM, Mick wrote: > On Thursday 23 Feb 2012 08:10:56 Coert Waagmeester wrote: >> Hello all, >> >> Usually on gentoo when gentoo-sources gets updated, updating the kernel >> went as follows: >> >> eselect kernel set {new kernel} >> cd /usr/src/linux >> make menuconfig >> >> and then there was a totally clean config which I would then customize >> for the specific setup. >> >> On one box I am currently running 3.1.6-gentoo >> When I start make menuconfig for 3.2.1-gentoo-r2 it would appear as if >> it got my current config from somewhere, eg local version. >> >> Is this a new feature? >> >> To make sure of this I unistalled all gentoo-sources pkgs, deleted >> everything /usr/src/linux* >> installed the latest gentoo-sources >> yet it still seems to find the current config somewhere >> >> Anyway, just wondering,, >> >> Regards, >> Coert > > Where does the /usr/src/linux symlink point to? Here's mine: > > $ ls -la /usr/src/ > total 20 > drwxr-xr-x 5 root root 4096 Feb 4 11:40 . > drwxr-xr-x 13 root root 4096 Dec 27 09:01 .. > -rw-r--r-- 1 root root 0 Dec 16 2010 .keep > lrwxrwxrwx 1 root root 30 Feb 4 11:40 linux -> /usr/src/linux-3.2.1- > gentoo-r2 > drwxr-xr-x 24 root root 4096 Oct 16 16:40 linux-2.6.39-gentoo-r3 > drwxr-xr-x 24 root root 4096 Dec 8 21:35 linux-3.0.6-gentoo > drwxr-xr-x 24 root root 4096 Feb 18 13:31 linux-3.2.1-gentoo-r2 Here is mine: # ls -l /usr/src/ total 4 lrwxrwxrwx 1 root root 21 Feb 23 10:02 linux -> linux-3.2.1-gentoo-r2 drwxr-xr-x 24 root root 4096 Feb 23 10:23 linux-3.2.1-gentoo-r2 and I made sure that its a completely clean install of gentoo-sources The only thing I can currently think of is maybe the kernel config files in /boot? # ls -l /boot/ total 13760 -rw-r--r-- 1 root root 2336082 Jan 5 12:03 System.map-3.1.6-gentoo-cj-1 -rw-r--r-- 1 root root 2422336 Feb 23 10:23 System.map-3.2.1-gentoo-r2-cj-2 lrwxrwxrwx 1 root root 1 Jan 9 13:38 boot -> . -rw-r--r-- 1 root root 68292 Jan 5 12:03 config-3.1.6-gentoo-cj-1 -rw-r--r-- 1 root root 70578 Feb 23 10:23 config-3.2.1-gentoo-r2-cj-2 drwxr-xr-x 2 root root 4096 Feb 23 10:48 grub -rw-r--r-- 1 root root 4563312 Jan 5 12:03 vmlinuz-3.1.6-gentoo-cj-1 -rw-r--r-- 1 root root 4608752 Feb 23 10:23 vmlinuz-3.2.1-gentoo-r2-cj-2 Rgds, Coert ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 8:51 ` Coert Waagmeester @ 2012-02-23 9:17 ` Neil Bothwick 2012-02-23 10:48 ` Coert Waagmeester 2012-02-24 22:08 ` ny6p01 0 siblings, 2 replies; 20+ messages in thread From: Neil Bothwick @ 2012-02-23 9:17 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 435 bytes --] On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: > The only thing I can currently think of is maybe the kernel config > files in /boot? I'd say it's more likely to be getting it from /proc/config.gz. But why start with a clean config each time? That means you have plenty of opportunities to produce a broken kernel on every update. -- Neil Bothwick This is as bad as it can get; but don't bet on it. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 9:17 ` Neil Bothwick @ 2012-02-23 10:48 ` Coert Waagmeester 2012-02-23 11:08 ` Alan McKinnon 2012-02-24 22:08 ` ny6p01 1 sibling, 1 reply; 20+ messages in thread From: Coert Waagmeester @ 2012-02-23 10:48 UTC (permalink / raw To: gentoo-user On 02/23/2012 11:17 AM, Neil Bothwick wrote: > On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: > >> The only thing I can currently think of is maybe the kernel config >> files in /boot? > > I'd say it's more likely to be getting it from /proc/config.gz. > > But why start with a clean config each time? That means you have plenty > of opportunities to produce a broken kernel on every update. > > Is there a way to import old config files with newer kernel sources? I tried it once by simply copying .config into the newer src dir, but I read somewhere that there could be incompatibilities. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 10:48 ` Coert Waagmeester @ 2012-02-23 11:08 ` Alan McKinnon 2012-02-23 11:16 ` [gentoo-user] SOLVED " Coert Waagmeester 2012-02-24 22:11 ` [gentoo-user] " ny6p01 0 siblings, 2 replies; 20+ messages in thread From: Alan McKinnon @ 2012-02-23 11:08 UTC (permalink / raw To: gentoo-user On Thu, 23 Feb 2012 12:48:35 +0200 Coert Waagmeester <lgroups@waagmeester.co.za> wrote: > On 02/23/2012 11:17 AM, Neil Bothwick wrote: > > On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: > > > >> The only thing I can currently think of is maybe the kernel config > >> files in /boot? > > > > I'd say it's more likely to be getting it from /proc/config.gz. > > > > But why start with a clean config each time? That means you have > > plenty of opportunities to produce a broken kernel on every update. > > > > > > Is there a way to import old config files with newer kernel sources? > I tried it once by simply copying .config into the newer src dir, but > I read somewhere that there could be incompatibilities. > That is exactly how you do it. Copy a .config over and run make oldconfig Yes, there could be incompatibilities. This might happen once every few years when you do an upgrade over 10 version numbers. But that can be fixed. Not doing it this way means a very high likelyhood of the machine not booting with every single upgrade, plus the huge amount of work it takes to go through everything in menuconfig. The choices are simple, - low risk of occasional breakage - high risk of frequent breakage -- Alan McKinnnon alan.mckinnon@gmail.com ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness 2012-02-23 11:08 ` Alan McKinnon @ 2012-02-23 11:16 ` Coert Waagmeester 2012-02-23 11:25 ` Alan McKinnon 2012-02-23 14:04 ` Mark Knecht 2012-02-24 22:11 ` [gentoo-user] " ny6p01 1 sibling, 2 replies; 20+ messages in thread From: Coert Waagmeester @ 2012-02-23 11:16 UTC (permalink / raw To: gentoo-user On 02/23/2012 01:08 PM, Alan McKinnon wrote: > On Thu, 23 Feb 2012 12:48:35 +0200 > Coert Waagmeester<lgroups@waagmeester.co.za> wrote: > >> On 02/23/2012 11:17 AM, Neil Bothwick wrote: >>> On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: >>> >>>> The only thing I can currently think of is maybe the kernel config >>>> files in /boot? >>> >>> I'd say it's more likely to be getting it from /proc/config.gz. >>> >>> But why start with a clean config each time? That means you have >>> plenty of opportunities to produce a broken kernel on every update. >>> >>> >> >> Is there a way to import old config files with newer kernel sources? >> I tried it once by simply copying .config into the newer src dir, but >> I read somewhere that there could be incompatibilities. >> > > That is exactly how you do it. Copy a .config over and run make > oldconfig I am definitely going to try this. > > Yes, there could be incompatibilities. This might happen once every few > years when you do an upgrade over 10 version numbers. But that can be > fixed. > > Not doing it this way means a very high likelyhood of the machine not > booting with every single upgrade, plus the huge amount of work it > takes to go through everything in menuconfig. indeed, especially when the server is stuck in a far away rack. > > The choices are simple, > > - low risk of occasional breakage > - high risk of frequent breakage > > > Thank you all ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness 2012-02-23 11:16 ` [gentoo-user] SOLVED " Coert Waagmeester @ 2012-02-23 11:25 ` Alan McKinnon 2012-02-23 12:24 ` J. Roeleveld 2012-02-23 14:04 ` Mark Knecht 1 sibling, 1 reply; 20+ messages in thread From: Alan McKinnon @ 2012-02-23 11:25 UTC (permalink / raw To: gentoo-user On Thu, 23 Feb 2012 13:16:41 +0200 Coert Waagmeester <lgroups@waagmeester.co.za> wrote: > > Not doing it this way means a very high likelyhood of the machine > > not booting with every single upgrade, plus the huge amount of work > > it takes to go through everything in menuconfig. > > indeed, especially when the server is stuck in a far away rack. Ooooooooooh, those are the scary ones. Two excellent things can help with that: A proper RAC setup, or Copy the debian boot scheme, where is a kernel won't boot, it panics and times out after 30 seconds. Grub then automagically boots the previous working kernel. Just don't do what I did earlier: sit in Joburg and configure the firewall on a Xen host in deepest darkest Africa where there's no tarred roads to get to it. Check the iptables config three times, plus get your colleagues to look it over as well. We all signed off on it. Guess what? Yup, you got it. We all missed something and now we are locked out. Remember, it's in deepest darkest Africa. <sigh> -- Alan McKinnnon alan.mckinnon@gmail.com ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness 2012-02-23 11:25 ` Alan McKinnon @ 2012-02-23 12:24 ` J. Roeleveld 0 siblings, 0 replies; 20+ messages in thread From: J. Roeleveld @ 2012-02-23 12:24 UTC (permalink / raw To: gentoo-user On Thu, February 23, 2012 12:25 pm, Alan McKinnon wrote: > Just don't do what I did earlier: sit in Joburg and configure the > firewall on a Xen host in deepest darkest Africa where there's no > tarred roads to get to it. How did you get the server there? Flown it in? I've seen the roads in Africa and those are difficult to navigate... (The tarmac'd ones are decent though) > Check the iptables config three times, > plus get your colleagues to look it over as well. We all signed off on > it. > > Guess what? Yup, you got it. We all missed something and now we are > locked out. Remember, it's in deepest darkest Africa. That's why I like the "ADMINISABSENTMINDED" option in the Shorewall config. It doesn't kill existing connections. I always test a new remote connection prior to closing the one I used to change it with. If I do accidentally kill my existing connection, the "safe_restart" option will cause it to roll-back if I don't accept the new settings before a time-out. -- Joost ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] SOLVED gentoo-sources menuconfig feature/weirdness 2012-02-23 11:16 ` [gentoo-user] SOLVED " Coert Waagmeester 2012-02-23 11:25 ` Alan McKinnon @ 2012-02-23 14:04 ` Mark Knecht 1 sibling, 0 replies; 20+ messages in thread From: Mark Knecht @ 2012-02-23 14:04 UTC (permalink / raw To: gentoo-user On Thu, Feb 23, 2012 at 3:16 AM, Coert Waagmeester <lgroups@waagmeester.co.za> wrote: > On 02/23/2012 01:08 PM, Alan McKinnon wrote: <SNIP> >>> >>> Is there a way to import old config files with newer kernel sources? >>> I tried it once by simply copying .config into the newer src dir, but >>> I read somewhere that there could be incompatibilities. >>> >> >> That is exactly how you do it. Copy a .config over and run make >> oldconfig > > > I am definitely going to try this. >> If I can offer one additional step then at the end also do a make menuconfig even if you don't intend to change anything. The additional menuconfig runs checks on the combination of options selected and not selected and in some cases will pop up some messages about incorrect/inconsistent settings. No messages means it's OK to do the build, but if you get messages then it's best to take care of them before building. HTH, Mark ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 11:08 ` Alan McKinnon 2012-02-23 11:16 ` [gentoo-user] SOLVED " Coert Waagmeester @ 2012-02-24 22:11 ` ny6p01 2012-02-24 23:02 ` Neil Bothwick 1 sibling, 1 reply; 20+ messages in thread From: ny6p01 @ 2012-02-24 22:11 UTC (permalink / raw To: gentoo-user On Thu, Feb 23, 2012 at 01:08:22PM +0200, Alan McKinnon wrote: > On Thu, 23 Feb 2012 12:48:35 +0200 > Coert Waagmeester <lgroups@waagmeester.co.za> wrote: > > > On 02/23/2012 11:17 AM, Neil Bothwick wrote: > > > On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: > > > > > >> The only thing I can currently think of is maybe the kernel config > > >> files in /boot? > > > > > > I'd say it's more likely to be getting it from /proc/config.gz. > > > > > > But why start with a clean config each time? That means you have > > > plenty of opportunities to produce a broken kernel on every update. > > > > > > > > > > Is there a way to import old config files with newer kernel sources? > > I tried it once by simply copying .config into the newer src dir, but > > I read somewhere that there could be incompatibilities. > > > > That is exactly how you do it. Copy a .config over and run make > oldconfig > > Yes, there could be incompatibilities. This might happen once every few > years when you do an upgrade over 10 version numbers. But that can be > fixed. > > Not doing it this way means a very high likelyhood of the machine not > booting with every single upgrade, plus the huge amount of work it > takes to go through everything in menuconfig. > > The choices are simple, > > - low risk of occasional breakage > - high risk of frequent breakage > > > > -- > Alan McKinnnon > alan.mckinnon@gmail.com > > Or just import .config into the 'New' directory, and run plain ol' make menuconfig. Menuconfig will import what it can from the old config. From what I've read of the docs, make oldconfig is the dangerous part that should be avoided between substantial kernel updates. Terry ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-24 22:11 ` [gentoo-user] " ny6p01 @ 2012-02-24 23:02 ` Neil Bothwick 2012-02-24 23:44 ` David W Noon ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: Neil Bothwick @ 2012-02-24 23:02 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 745 bytes --] On Fri, 24 Feb 2012 14:11:24 -0800, ny6p01@gmail.com wrote: > Or just import .config into the 'New' directory, and run plain ol' make > menuconfig. Menuconfig will import what it can from the old config. From > what I've read of the docs, make oldconfig is the dangerous part that > should be avoided between substantial kernel updates. make oldconfig is not the risk, importing the old config is. oldconfig tries to convert the old config to suit the new kernel, with a success rate probably in excess of 99%, despite what has been written about it. Using the old .config without make oldconfig is a good way of getting the worst of both worlds. -- Neil Bothwick Windows Error #56: Operator fell asleep while waiting. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-24 23:02 ` Neil Bothwick @ 2012-02-24 23:44 ` David W Noon 2012-02-24 23:49 ` Dale 2012-02-25 1:52 ` ny6p01 2 siblings, 0 replies; 20+ messages in thread From: David W Noon @ 2012-02-24 23:44 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1165 bytes --] On Fri, 24 Feb 2012 23:02:38 +0000, Neil Bothwick wrote about Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness: > On Fri, 24 Feb 2012 14:11:24 -0800, ny6p01@gmail.com wrote: > > > Or just import .config into the 'New' directory, and run plain ol' > > make menuconfig. Menuconfig will import what it can from the old > > config. From what I've read of the docs, make oldconfig is the > > dangerous part that should be avoided between substantial kernel > > updates. > > make oldconfig is not the risk, importing the old config is. oldconfig > tries to convert the old config to suit the new kernel, with a success > rate probably in excess of 99%, despite what has been written about > it. > > Using the old .config without make oldconfig is a good way of getting > the worst of both worlds. The previous poster is doing make menuconfig. This silently performs a make oldconfig before presenting the menu. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwnoon@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-24 23:02 ` Neil Bothwick 2012-02-24 23:44 ` David W Noon @ 2012-02-24 23:49 ` Dale 2012-02-25 1:52 ` ny6p01 2 siblings, 0 replies; 20+ messages in thread From: Dale @ 2012-02-24 23:49 UTC (permalink / raw To: gentoo-user Neil Bothwick wrote: > On Fri, 24 Feb 2012 14:11:24 -0800, ny6p01@gmail.com wrote: > >> Or just import .config into the 'New' directory, and run plain ol' make >> menuconfig. Menuconfig will import what it can from the old config. From >> what I've read of the docs, make oldconfig is the dangerous part that >> should be avoided between substantial kernel updates. > > make oldconfig is not the risk, importing the old config is. oldconfig > tries to convert the old config to suit the new kernel, with a success > rate probably in excess of 99%, despite what has been written about it. > > Using the old .config without make oldconfig is a good way of getting > the worst of both worlds. > > Of all the upgrades I have done, I have only had make oldconfig fail once. When I posted here, I think it was Alan that said it was a major change in the kernel menu that messed it up. That was a few years ago. 99% is likely about right. One failure so far and waiting on the next major change in the menu for failure #2. Now watch it fail the very next time I use it. O_o Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words! Miss the compile output? Hint: EMERGE_DEFAULT_OPTS="--quiet-build=n" ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-24 23:02 ` Neil Bothwick 2012-02-24 23:44 ` David W Noon 2012-02-24 23:49 ` Dale @ 2012-02-25 1:52 ` ny6p01 2012-02-25 2:10 ` Dale 2 siblings, 1 reply; 20+ messages in thread From: ny6p01 @ 2012-02-25 1:52 UTC (permalink / raw To: gentoo-user On Fri, Feb 24, 2012 at 11:02:38PM +0000, Neil Bothwick wrote: > On Fri, 24 Feb 2012 14:11:24 -0800, ny6p01@gmail.com wrote: > > > Or just import .config into the 'New' directory, and run plain ol' make > > menuconfig. Menuconfig will import what it can from the old config. From > > what I've read of the docs, make oldconfig is the dangerous part that > > should be avoided between substantial kernel updates. > > make oldconfig is not the risk, importing the old config is. oldconfig > tries to convert the old config to suit the new kernel, with a success > rate probably in excess of 99%, despite what has been written about it. > > Using the old .config without make oldconfig is a good way of getting > the worst of both worlds. > > > -- > Neil Bothwick > > Windows Error #56: Operator fell asleep while waiting. I don't mean to be petty, so forgive me - but I needed to check to see if I'd misread the kernel upgrade guide. So I went back and checked the guide, and I was confirmed in my impression. From the guide: #Start Quotes It is sometimes possible to save time by re-using the configuration file from your old kernel when configuring the new one. Note that this is generally unsafe -- too many changes between every kernel release for this to be a reliable upgrade path. The only situation where this is appropriate is when upgrading from one Gentoo kernel revision to another. For example, the changes made between gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so it is usually OK to use the following method. However, it is not appropriate to use it in the example used throughout this document: upgrading from 2.6.8 to 2.6.9. Too many changes between the official releases, and the method described below does not display enough context to the user, often resulting in the user running into problems because they disabled options that they really didn't want to. To reuse your old .config, you simply need to copy it over and then run make oldconfig. In the following example, we take the configuration from gentoo-sources-2.6.9-r1 and import it into gentoo-sources-2.6.9-r2. A much safer upgrading method is to copy your config as previously shown, and then simply run make menuconfig. This avoids the problems of make oldconfig mentioned previously, as make menuconfig will load up your previous configuration as much as possible into the menu. Now all you have to do is go through each option and look for new sections, removals, and so on. By using menuconfig, you gain context for all the new changes, and can easily view the new choices and review help screens much easier. You can even use this for upgrades such as 2.6.8 to 2.6.9; just make sure you read through the options carefully. Once you've finished, compile and install your kernel as normal. #End Quotes Terry ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-25 1:52 ` ny6p01 @ 2012-02-25 2:10 ` Dale 2012-02-25 2:50 ` Pandu Poluan 0 siblings, 1 reply; 20+ messages in thread From: Dale @ 2012-02-25 2:10 UTC (permalink / raw To: gentoo-user ny6p01@gmail.com wrote: > On Fri, Feb 24, 2012 at 11:02:38PM +0000, Neil Bothwick wrote: >> On Fri, 24 Feb 2012 14:11:24 -0800, ny6p01@gmail.com wrote: >> >>> Or just import .config into the 'New' directory, and run plain ol' make >>> menuconfig. Menuconfig will import what it can from the old config. From >>> what I've read of the docs, make oldconfig is the dangerous part that >>> should be avoided between substantial kernel updates. >> >> make oldconfig is not the risk, importing the old config is. oldconfig >> tries to convert the old config to suit the new kernel, with a success >> rate probably in excess of 99%, despite what has been written about it. >> >> Using the old .config without make oldconfig is a good way of getting >> the worst of both worlds. >> >> >> -- >> Neil Bothwick >> >> Windows Error #56: Operator fell asleep while waiting. > > > I don't mean to be petty, so forgive me - but I needed to check to see if > I'd misread the kernel upgrade guide. So I went back and checked the guide, > and I was confirmed in my impression. From the guide: > > #Start Quotes > It is sometimes possible to save time by re-using the configuration file > from your old kernel when configuring the new one. Note that this is > generally unsafe -- too many changes between every kernel release for this > to be a reliable upgrade path. > > The only situation where this is appropriate is when upgrading from one > Gentoo kernel revision to another. For example, the changes made between > gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so > it is usually OK to use the following method. However, it is not appropriate > to use it in the example used throughout this document: upgrading from 2.6.8 > to 2.6.9. Too many changes between the official releases, and the method > described below does not display enough context to the user, often resulting > in the user running into problems because they disabled options that they > really didn't want to. > > To reuse your old .config, you simply need to copy it over and then run make > oldconfig. In the following example, we take the configuration from > gentoo-sources-2.6.9-r1 and import it into gentoo-sources-2.6.9-r2. > > A much safer upgrading method is to copy your config as previously shown, > and then simply run make menuconfig. This avoids the problems of make > oldconfig mentioned previously, as make menuconfig will load up your > previous configuration as much as possible into the menu. Now all you have > to do is go through each option and look for new sections, removals, and so > on. By using menuconfig, you gain context for all the new changes, and can > easily view the new choices and review help screens much easier. You can > even use this for upgrades such as 2.6.8 to 2.6.9; just make sure you read > through the options carefully. Once you've finished, compile and install > your kernel as normal. > > #End Quotes > > > Terry > > That is true BUT the docs are for 100% certainty. Well, 99% at least. They almost always have the safest way to do anything but not necessarily the most used way. There are lots of things I do differently from the docs and my system generally works fine, except for the little roaches that scurry about from time to time. If you want a drop dead, almost as sure as the Sun comes up in the East approach, go by the docs. If you want to save some time for most general usage, do it the way us goofy geeks do it. Some of us know some neat shortcuts. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words! Miss the compile output? Hint: EMERGE_DEFAULT_OPTS="--quiet-build=n" ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-25 2:10 ` Dale @ 2012-02-25 2:50 ` Pandu Poluan 2012-02-25 11:38 ` Dale 0 siblings, 1 reply; 20+ messages in thread From: Pandu Poluan @ 2012-02-25 2:50 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1234 bytes --] On Feb 25, 2012 9:16 AM, "Dale" <rdalek1967@gmail.com> wrote: > ---->8snip > > > That is true BUT the docs are for 100% certainty. Well, 99% at least. > They almost always have the safest way to do anything but not > necessarily the most used way. There are lots of things I do > differently from the docs and my system generally works fine, except for > the little roaches that scurry about from time to time. > > If you want a drop dead, almost as sure as the Sun comes up in the East > approach, go by the docs. If you want to save some time for most > general usage, do it the way us goofy geeks do it. Some of us know some > neat shortcuts. > > Dale > I tend to do an 'eyeball dryrun' first: start tmux, create 2 'windows', do make menuconfig of the older kernel in the first window, and start make menuconfig in the second. I quickly compare the menu structure of both to see where the implicit oldconfig might choke, do some research if necessary, and make notes. Then, I exit the newer menuconfig and cp the older .config to the newer src directory, and start make menuconfig again. I keep comparing what I'm doing against what I've done in window #1. Never had a kernel upgrade failure this way -- touch wood! Rgds, [-- Attachment #2: Type: text/html, Size: 1508 bytes --] ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-25 2:50 ` Pandu Poluan @ 2012-02-25 11:38 ` Dale 0 siblings, 0 replies; 20+ messages in thread From: Dale @ 2012-02-25 11:38 UTC (permalink / raw To: gentoo-user Pandu Poluan wrote: > > On Feb 25, 2012 9:16 AM, "Dale" <rdalek1967@gmail.com > <mailto:rdalek1967@gmail.com>> wrote: >> > ---->8snip > >> >> >> That is true BUT the docs are for 100% certainty. Well, 99% at least. >> They almost always have the safest way to do anything but not >> necessarily the most used way. There are lots of things I do >> differently from the docs and my system generally works fine, except for >> the little roaches that scurry about from time to time. >> >> If you want a drop dead, almost as sure as the Sun comes up in the East >> approach, go by the docs. If you want to save some time for most >> general usage, do it the way us goofy geeks do it. Some of us know some >> neat shortcuts. >> >> Dale >> > > I tend to do an 'eyeball dryrun' first: start tmux, create 2 'windows', > do make menuconfig of the older kernel in the first window, and start > make menuconfig in the second. I quickly compare the menu structure of > both to see where the implicit oldconfig might choke, do some research > if necessary, and make notes. > > Then, I exit the newer menuconfig and cp the older .config to the newer > src directory, and start make menuconfig again. I keep comparing what > I'm doing against what I've done in window #1. > > Never had a kernel upgrade failure this way -- touch wood! > > Rgds, > I have had only one doing it the quick way. When I did have a failure tho, I did like you do but in two windows of Konsole. One window on top and one on bottom. Just went section by section. Over the past 3 or so years, no problems and it only takes about 20 seconds. One thing tho, if it fails, it generally tells you it made a mess. Just delete the new config and start from scratch like above. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words! Miss the compile output? Hint: EMERGE_DEFAULT_OPTS="--quiet-build=n" ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 9:17 ` Neil Bothwick 2012-02-23 10:48 ` Coert Waagmeester @ 2012-02-24 22:08 ` ny6p01 1 sibling, 0 replies; 20+ messages in thread From: ny6p01 @ 2012-02-24 22:08 UTC (permalink / raw To: gentoo-user On Thu, Feb 23, 2012 at 09:17:34AM +0000, Neil Bothwick wrote: > On Thu, 23 Feb 2012 10:51:43 +0200, Coert Waagmeester wrote: > > > The only thing I can currently think of is maybe the kernel config > > files in /boot? > > I'd say it's more likely to be getting it from /proc/config.gz. > > But why start with a clean config each time? That means you have plenty > of opportunities to produce a broken kernel on every update. > > > -- > Neil Bothwick > > This is as bad as it can get; but don't bet on it. yea, I was thinking along those line, too. If I had to start from scratch each update, what a chore that would be! Terry ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [gentoo-user] gentoo-sources menuconfig feature/weirdness 2012-02-23 8:10 [gentoo-user] gentoo-sources menuconfig feature/weirdness Coert Waagmeester 2012-02-23 8:25 ` Mick @ 2012-02-23 9:25 ` William Kenworthy 1 sibling, 0 replies; 20+ messages in thread From: William Kenworthy @ 2012-02-23 9:25 UTC (permalink / raw To: gentoo-user On Thu, 2012-02-23 at 10:10 +0200, Coert Waagmeester wrote: > Hello all, > > Usually on gentoo when gentoo-sources gets updated, updating the kernel > went as follows: > > eselect kernel set {new kernel} > cd /usr/src/linux make mrproper > make menuconfig ... BillK ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2012-02-25 11:40 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-02-23 8:10 [gentoo-user] gentoo-sources menuconfig feature/weirdness Coert Waagmeester 2012-02-23 8:25 ` Mick 2012-02-23 8:51 ` Coert Waagmeester 2012-02-23 9:17 ` Neil Bothwick 2012-02-23 10:48 ` Coert Waagmeester 2012-02-23 11:08 ` Alan McKinnon 2012-02-23 11:16 ` [gentoo-user] SOLVED " Coert Waagmeester 2012-02-23 11:25 ` Alan McKinnon 2012-02-23 12:24 ` J. Roeleveld 2012-02-23 14:04 ` Mark Knecht 2012-02-24 22:11 ` [gentoo-user] " ny6p01 2012-02-24 23:02 ` Neil Bothwick 2012-02-24 23:44 ` David W Noon 2012-02-24 23:49 ` Dale 2012-02-25 1:52 ` ny6p01 2012-02-25 2:10 ` Dale 2012-02-25 2:50 ` Pandu Poluan 2012-02-25 11:38 ` Dale 2012-02-24 22:08 ` ny6p01 2012-02-23 9:25 ` William Kenworthy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox