From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SbciO-0002Lp-T4 for garchives@archives.gentoo.org; Mon, 04 Jun 2012 19:13:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3721E09EE; Mon, 4 Jun 2012 19:13:01 +0000 (UTC) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 007F4E09CC for ; Mon, 4 Jun 2012 19:11:07 +0000 (UTC) Received: by lagu2 with SMTP id u2so3553380lag.40 for ; Mon, 04 Jun 2012 12:11:07 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=8lmCzAiWt6BdBSDkNyIhxUUob/JZbb8cXRCFVUwNZhI=; b=M07kplBHTb/GZ8CZvYC7NidkE4ejO763m4Jbw/kTv5damV2uraDYOWzH3S/TrIPH5S MFmv4l4dJhQMwNQ87Xy5WS9O7VZBYJNEVtU6Vd0vBN/mNBSXkEWZAvaAakr7Fz2vvs5k C+t7uCDYRevEm8wMkJS7mdFC/3fwM0Rx07PZ0w1lb7a+xby2LndmI69HCUSrigfZN1W8 TPpIgV/crOQxD3KIGidXk6d0CciWMHQQ6Y6w2ziltPfjwxgbLyCBm7wtizwj5hxUH1PU 31rReTnZ+UQ+e08bCQfIkXG/jBbsBLZYBB9ZH+cExn/L1u/QT11FnN0AS62sacDA4A6/ 3Obg== Received: by 10.112.36.132 with SMTP id q4mr6688190lbj.63.1338837066946; Mon, 04 Jun 2012 12:11:06 -0700 (PDT) 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 Sender: paul.hartman@gmail.com Received: by 10.112.77.4 with HTTP; Mon, 4 Jun 2012 12:10:46 -0700 (PDT) In-Reply-To: <4FCD0105.4000906@morlix.de> References: <4FCD0105.4000906@morlix.de> From: Paul Hartman Date: Mon, 4 Jun 2012 14:10:46 -0500 X-Google-Sender-Auth: yRoV84bb3QW6J5wmMp_1qVB_De4 Message-ID: Subject: Re: [gentoo-user] genkernel initramfs and grub2-mkconfig To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 2bd54438-fa4d-4eb6-9b88-601869377777 X-Archives-Hash: 7e0b7d5dfdc4c3a90f795e7f083b2326 On Mon, Jun 4, 2012 at 1:40 PM, morlix wrote: > Hello, > > does anybody of you know how to get the grub2-mkconfig script to > correctly detect initramfs and set the kernel parameter "root=" to > /dev/ram0 or just don't set the parameter at all. > > I'm using genkernel and want to use my generated initramfs, but > everytime grub2-mkconfig gets called it sets the kernel parameter root= > to my root partition and then the initramfs won't get used. > > I think manually editing /boot/grub2/grub.cfg and deleting the root= > parameter and setting real_root isn't a good choice for long term. The default scripts for grub2-mkconfig looks for a specific filename for the initramfs, related to the kernel filename. If you look in those scripts, you may be able to modify it to look at your filenames instead.