From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3A83E138CCF for ; Sat, 23 May 2015 04:22:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DACFDE09D9; Sat, 23 May 2015 04:21:57 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id D4A03E0968 for ; Sat, 23 May 2015 04:21:56 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DkEgA731xV/zH/d0tcgxCBMogluzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBDocMwsYCRMSDwUlN4gszyMBAQEHAgEfizqFDBaDAYEWBZJwd4oIgSiGUBmNP4FFI4I7gVkiMYJHAQEB X-IPAS-Result: A0DkEgA731xV/zH/d0tcgxCBMogluzcJh0sEAgKBPDkUAQEBAQEBAYEKQQWDXQEBBDocMwsYCRMSDwUlN4gszyMBAQEHAgEfizqFDBaDAYEWBZJwd4oIgSiGUBmNP4FFI4I7gVkiMYJHAQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="121845909" Received: from 75-119-255-49.dsl.teksavvy.com (HELO waltdnes.org) ([75.119.255.49]) by ironport2-out.teksavvy.com with SMTP; 23 May 2015 00:21:54 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sat, 23 May 2015 00:21:40 -0400 From: "Walter Dnes" Date: Sat, 23 May 2015 00:21:40 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [~and64] Headsup for googled the previous one to vmlinu-chrome users Message-ID: <20150523042140.GA31856@waltdnes.org> References: <555FA801.80101@gmail.com> <20150522231306.62cef216@digimed.co.uk> <201505222329.42029.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201505222329.42029.michaelkintzios@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: 8919961a-51bd-40ae-b488-9469eb0cd203 X-Archives-Hash: 86b380d0f2b1ed2261098e7a112d6490 On Fri, May 22, 2015 at 11:29:40PM +0100, Mick wrote > On Friday 22 May 2015 23:13:06 Neil Bothwick wrote: > > > > make install does it exactly the way you are doing it, but faster and > > less prone to error. > > Hmm ... I may have used it the wrong way quite a few years ago, but > it would only keep two kernels at a time or something like that. > That made me carry on copying kernel files into boot manually. > In this way at least I know where I put them and what options I pass > on to them. I've automated that process. I have 2 kernels, "experimental" and "production". I use 2 scripts "makeover" and "promote". When I first build a new kernel, I run the the "makeover" script, which does make and overwrites the previous experimental kernel. Note that this script *MUST* be executed from the /usr/src/linux/ directory. #!/bin/bash make && \ make modules_install && \ cp arch/x86_64/boot/bzImage /boot/kernel.experimental && \ cp System.map /boot/System.map.experimental && \ cp .config /boot/config.experimental && \ lilo When the "experimental" kernel has been running OK for a couple of weeks, I promote it to "production" with the "promote" script... #!/bin/bash cp /boot/System.map.experimental /boot/System.map.production cp /boot/config.experimental /boot/config.production cp /boot/kernel.experimental /boot/kernel.production lilo This hooks into my /etc/lilo.conf menu, shown here with comment lines removed... ########################################### lba32 boot = /dev/sda map = /boot/.map install = /boot/boot-menu.b menu-scheme=Wb prompt timeout=150 delay = 50 image = /boot/kernel.production root = /dev/sda5 label = Production read-only # read-only for checking append = "noexec=on net.ifnames=0" image = /boot/kernel.experimental root = /dev/sda5 label = Experimental read-only # read-only for checking append = "noexec=on net.ifnames=0" ########################################### This has saved me on occasion, allowing me to fall back to a working "production" kernel when things go badly with "experimental". I then run my "demote" script. #!/bin/bash cp /boot/System.map.production /boot/System.map.experimental cp /boot/config.production /boot/config.experimental cp /boot/kernel.production /boot/kernel.experimental lilo I also have my kernels set up so that I can... zcat /proc/config.gz > /usr/src/linux/.config ...to retrieve a known working .config file from the currently running kernel. This puts me back to square 1 with the experimental kernel. -- Walter Dnes I don't run "desktop environments"; I run useful applications