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 C874A1381F3 for ; Wed, 2 Oct 2013 16:03:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5E25E0B16; Wed, 2 Oct 2013 16:02:55 +0000 (UTC) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9582EE081B for ; Wed, 2 Oct 2013 16:02:54 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id eh20so826149lab.4 for ; Wed, 02 Oct 2013 09:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tnvLX6n3KezEu86f2lfLBmFhtlp3SqIvO8P/rhgF/sg=; b=trPdP+VPs9NTpy3mC0lfSWwRlYhrVkmHmRx+Sm83wT5mZosn2gmw5nT0jXKbGp2YO1 YO5YynB3HhV1c5ZeM0iHiCSUTN03xD2JwOvkzSnQH3v+SRnCbupG3kfFXw8xyzsuv+T3 DjIcAMyaoV/0J4/cIu1dTXuWjmnmJMw2KwrRsaJ6rkD3ShFv7FIwi1Ncc/w7sJOxGjBw +SPG6U3MTEisc20vCcm5CPxY1RG2mRwH9IY6iq9SaPtrze85VdJLUX2A57TBOPGW2h3E BqjVlsFdPFjyYj0Xm527ZTyhUUSJshmeNc90+PZzXjJ+L8af22ZSQVJhPGWqUmeX2342 bLUA== 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 X-Received: by 10.112.50.109 with SMTP id b13mr1763257lbo.47.1380729772737; Wed, 02 Oct 2013 09:02:52 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Wed, 2 Oct 2013 09:02:52 -0700 (PDT) In-Reply-To: <524C0820.9030501@xunil.at> References: <524C0820.9030501@xunil.at> Date: Wed, 2 Oct 2013 11:02:52 -0500 Message-ID: Subject: Re: [gentoo-user] kerninst (was Optional /usr merge in Gentoo) From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6c7cc2d6-ca56-4b8c-8bd7-20ebffa0c8c5 X-Archives-Hash: 9e59c08beb133b3338b6e3e01c7ac976 On Wed, Oct 2, 2013 at 6:48 AM, Stefan G. Weichinger wrote= : > Am 01.09.2013 19:30, schrieb Canek Pel=C3=A1ez Vald=C3=A9s: >> I am following vanilla-sources in all my machines, which is what >> people like Greg Kroah-Hartman actually recommends [1][2]. Since they >> are now never stabilized [3], this means that I need to update them >> pretty regularly to keep them safe. >> >> This implies that I have to change the /usr/src/linux symbolic link, >> configure the kernel using make oldconfig, compile it, install it, >> install its modules, reemerge any package that provides kernel modules >> (if any), regenerate its initramfs, regenerate the GRUB2 config file >> OR adding a new entry in GRUB. >> >> None of this steps are particularly difficult, but any mistake in one >> of them can result in an unbootable system. So I wrote a little script >> that takes care of each of this steps automagically: >> >> https://github.com/canek-pelaez/kerninst >> >> So now everytime I need to use a new kernel version, I only do: >> >> # eselect kernel set >> # kerninst >> >> Everything is done by the script. > > > Canek, how to handle changing configs? > > AFAI understand I do: > > eselect kernel set x > cd /usr/src/linux > make menuconfig > (SAVE .config) > cp .config /etc/kerninst/kernel-config > kerninst > > ... right? > > I am currently struggling with a kernel not showing /dev/kvm ... and > toggling kvm_amd on/module ... etc Yeah, that's the way to do it. However, kerninst is not for testing different configurations of kernels. I suppose you could use it that way, but I wrote exactly for the opposite case: when you finally have your configuration nailed down, and just want to automatize the installation of the kernel. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico