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 44FCE1389FE for ; Fri, 31 Oct 2014 17:53:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3ACEE090F; Fri, 31 Oct 2014 17:53:26 +0000 (UTC) Received: from mail-qg0-f52.google.com (mail-qg0-f52.google.com [209.85.192.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 595AAE08E6 for ; Fri, 31 Oct 2014 17:53:25 +0000 (UTC) Received: by mail-qg0-f52.google.com with SMTP id a108so6084317qge.11 for ; Fri, 31 Oct 2014 10:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=fL6IHhDrkDZXIbm8j5dWJRERNVbxfeUu++e7ihrQBbY=; b=g8xCFDM4xyqzHdhB699oy5ra1mvWIvfI3kvZRWzePrMWJsK1vEJA7xvaMqkUWKtc66 8c2syufrt/+XqR05OJGFJC00C9SQeHjwZkMzGRVczGUhfU1KCyNSKUm4lmEbm3wzW0lx KTWQavcX2EzAnJ6WK8vQUbDDvbyGXbVkrYT/1n5cpEPr1EVyv48AjZJ3e57FJzM7MSSW qzqpwt5yn4kIGWKvqRtUbOavQIE/CaTgyVUuqUuDs1sxQ57gDrbydekkjvXepundaUqu qBpn/rHUeOSs/LKA1p76HWcz8q5dkBORH6eswTkFkkyjuYHwqocpbR7Cq9fGplg6bSeg 3YfA== 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.224.8.66 with SMTP id g2mr28740092qag.12.1414778004508; Fri, 31 Oct 2014 10:53:24 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.140.102.134 with HTTP; Fri, 31 Oct 2014 10:53:24 -0700 (PDT) In-Reply-To: <15724934.eWR0Wdy2P9@wstn> References: <54536D16.6090401@libertytrek.org> <8373843.QKcfWZa5E2@andromeda> <15724934.eWR0Wdy2P9@wstn> Date: Fri, 31 Oct 2014 13:53:24 -0400 X-Google-Sender-Auth: W_5kA6o8SS8F46SappbO0MxSElo Message-ID: Subject: Re: [gentoo-user] alternative kernels From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 1604ab20-bbe1-47bf-8a97-39efce9d1fe6 X-Archives-Hash: f2fed6774f7048537b43d84e8f9b161a On Fri, Oct 31, 2014 at 12:16 PM, Peter Humphrey wrote: > > My grub-0.99 lets me choose from four kernels and two or three run levels at > boot time, and grub-2 can't handle this yet, or it couldn't the last time I > checked. I don't suggest that everyone has a similar need, but at least in > some cases the old grub does still have a place. I doubt that grub2-mkconfig can auto-generate configs with permutations on runlevels, but if you build a manual config for grub2 I can't see why this would not work. You're just changing your choice of kernel and kernel parameters. It certainly does let you pick from multiple kernels. Grub2-mkconfig also supports a recovery configuration for each kernel that can have different options, which might or might not meet your need. You could also create your own module for grub2-mkconfig which does whatever you want. Or just use manual config files. I was doing this at first with grub2. I ended up ditching it for the generic mkconfig script, since it plays well with make install on kernels and dracut. Before I used to make the config static and just name my kernels k/k1/k2 or some such, rotating through names as I updated. That works, but was a pain. The biggest issue I ran into with mkconfig so far was that it doesn't always handle mainline rc kernel sorting - you'll get an rc kernel sorted above the release version and therefore made the default. I did file a bug about that, so hopefully it will get fixed some day. -- Rich