Blame SOURCES/0010-Name-lvm-boot-partitions-by-fstab-entry-893472.patch

e8c52d
From 163af6741ad259dc1a92ffcca2f563d0ea86bb44 Mon Sep 17 00:00:00 2001
e8c52d
From: Gene Czarcinski <gczarcinski@gmail.com>
e8c52d
Date: Tue, 5 Feb 2013 21:47:40 +0330
e8c52d
Subject: [PATCH 10/18] Name lvm boot partitions by fstab entry(#893472)
e8c52d
e8c52d
Recognize boot partitions on separate logical volumes and name them
e8c52d
using their fstab entries.
e8c52d
e8c52d
Resolves: rhbz#893472
e8c52d
---
e8c52d
 common.sh | 11 ++++++++++-
e8c52d
 1 file changed, 10 insertions(+), 1 deletion(-)
e8c52d
e8c52d
diff --git a/common.sh b/common.sh
e8c52d
index 85d13f0..52b0d2b 100644
e8c52d
--- a/common.sh
e8c52d
+++ b/common.sh
c62eab
@@ -246,7 +246,7 @@ linux_mount_boot () {
c62eab
 				if [ "$bindfrom" != "$tmpmnt/boot" ]; then
c62eab
 					if mount --bind "$bindfrom" "$tmpmnt/boot"; then
c62eab
 						mounted=1
c62eab
-						bootpart="$1"
c62eab
+						bootpart="$tmppart"
c62eab
 					else
c62eab
 						debug "failed to bind-mount $bindfrom onto $tmpmnt/boot"
c62eab
 					fi
c62eab
@@ -254,6 +254,15 @@ linux_mount_boot () {
c62eab
 			fi
c62eab
 			if [ "$mounted" ]; then
c62eab
 				:
c62eab
+			elif [ -e "$tmppart" ]; then
c62eab
+				bootpart="$tmppart"
c62eab
+				boottomnt="$tmppart"
c62eab
+			elif [ -e "$tmpmnt/$tmppart" ]; then
c62eab
+				bootpart="$tmppart"
c62eab
+				boottomnt="$tmpmnt/$tmppart"
c62eab
+			elif [ -e "/target/$tmppart" ]; then
c62eab
+				bootpart="$tmppart"
c62eab
+				boottomnt="/target/$tmppart"
c62eab
 			elif [ -e "$1" ]; then
c62eab
 				bootpart="$1"
c62eab
 				boottomnt="$1"
e8c52d
-- 
e8c52d
2.5.5
e8c52d