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 C14AA138CD0 for ; Thu, 21 May 2015 11:35:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0BEDE096D; Thu, 21 May 2015 11:35:00 +0000 (UTC) Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8636CE094B for ; Thu, 21 May 2015 11:34:59 +0000 (UTC) Received: by iepj10 with SMTP id j10so5779167iep.3 for ; Thu, 21 May 2015 04:34:59 -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=LvN18XQAVokgv+wwf779qiWUOQTRGkdzjYBJIIZYgbA=; b=McJr2bL7qpMkGXgsbhEY18ITyqDuop5tk7iZe1bHxFhE8tUAjWKodiSufWcpzXuYJ7 eWiCQn05yV+FUmnXz0w0cJx/qOm2+q20f4khHmuQbWdzz7fdsfQYtPpvsxZXjxBKgl0R lXiTLBodIX3+C2b7D5JZQ6L4/PyY0zS06P0s9wXg7Y2MncHtiGh7hGkiaouVzwRyifBL NykvOmpJNISEniUyQ2rIKtezJr2B+Le/0qWCzSmMT/bSca82p9SIKLinYYLRr+7REO6+ 5gkjwFdWpRkPqPmFk1JR81CbAXvZmFEL/M2Z3rjqmgoJj+EEragwH7Em301MAfcx//wr XUmA== 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.107.128.30 with SMTP id b30mr2636352iod.84.1432208099046; Thu, 21 May 2015 04:34:59 -0700 (PDT) Sender: freemanrich@gmail.com Received: by 10.107.159.81 with HTTP; Thu, 21 May 2015 04:34:58 -0700 (PDT) In-Reply-To: <20150521093305.112c9eb8@digimed.co.uk> References: <143216357.Wm6szaRcrP@wstn> <20150520213511.47ffde31@digimed.co.uk> <3916007.y9DcYGrn0A@wstn> <20150521093305.112c9eb8@digimed.co.uk> Date: Thu, 21 May 2015 07:34:58 -0400 X-Google-Sender-Auth: q97kBEDO6RH_6ShftbfPwWwYrTs Message-ID: Subject: Re: [gentoo-user] Tips for fresh install with GRUB2+RAID1+LVM2 From: Rich Freeman To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 106d28f9-16d5-4c75-8bbb-1ab654c28791 X-Archives-Hash: dce56cd393b38390b641c05abb071395 On Thu, May 21, 2015 at 4:33 AM, Neil Bothwick wrote: > That's a GRUB1 file, GRUB2 uses a different syntax so your first entry > would become > > menuentry "Gentoo Linux 3.18.12" { > linux /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5 net.ifnames=0 irqpoll > } Correct. > > Also, you need to copy 40_custom and then add your lines to that. This is > because files in /etc/grub.d are executed, so it needs to be a shell > script. > If you're just going to hand-edit your config file, I don't see much point in sticking this stuff in /etc/grub.d. Just hand-edit your config file and forget about grub2-mkconfig. 40_custom is more about adding one more entry to an auto-generated menu, such as having an entry for booting another OS, or a rescue CD image, or whatever. -- Rich