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 <gentoo-commits+bounces-384327-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1R6s0o-0002oM-RZ
	for garchives@archives.gentoo.org; Thu, 22 Sep 2011 22:44:59 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BB50F21C03B;
	Thu, 22 Sep 2011 22:44:11 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8567721C03B
	for <gentoo-commits@lists.gentoo.org>; Thu, 22 Sep 2011 22:44:11 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id AC52A1B4017
	for <gentoo-commits@lists.gentoo.org>; Thu, 22 Sep 2011 22:44:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id E0DAB80042
	for <gentoo-commits@lists.gentoo.org>; Thu, 22 Sep 2011 22:44:09 +0000 (UTC)
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" <robbat2@gentoo.org>
Message-ID: <00b5b3ab6603191c5a2e652b26595ab7aa5db188.robbat2@gentoo>
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
X-VCS-Repository: proj/genkernel
X-VCS-Files: defaults/initrd.scripts
X-VCS-Directories: defaults/
X-VCS-Committer: robbat2
X-VCS-Committer-Name: Robin H. Johnson
X-VCS-Revision: 00b5b3ab6603191c5a2e652b26595ab7aa5db188
Date: Thu, 22 Sep 2011 22:44:09 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 5f0f43d9376557a6fca6e5df6f33eed7

commit:     00b5b3ab6603191c5a2e652b26595ab7aa5db188
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 22 22:43:47 2011 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Thu Sep 22 22:43:47 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/genkernel.git=
;a=3Dcommit;h=3D00b5b3ab

Allow real_root to point to LVM-created symlinks.

Needed to unbreak root-on-LVM on my laptop.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 defaults/initrd.scripts |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index da8cb01..b6b01ca 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -648,6 +648,11 @@ startVolumes() {
=20
 			# To activate volumegroups on all devices in the cache
 			lvm_commands=3D"${lvm_commands} \nvgchange -ay --sysinit"
+		=09
+			# To create symlinks so users can use real_root=3D/dev/vg/root
+			# This needs to run after vgchange, using vgchange --mknodes is too
+			# early.
+			lvm_commands=3D"${lvm_commands} \nvgmknodes --ignorelockingfailure"
=20
 			# And finally execute it all (/proc/... needed if lvm is compiled wit=
hout readline)
 			good_msg "Scanning for and activating Volume Groups"