Blame SOURCES/0009-Support-detection-on-btrfs-software-raid-906847.patch

e8c52d
From aadaae9305a96da301e1466dbe93b85d7e89b2f9 Mon Sep 17 00:00:00 2001
e8c52d
From: "H.J. Lu" <hongjiu.lu@intel.com>
e8c52d
Date: Tue, 5 Feb 2013 21:47:40 +0330
e8c52d
Subject: [PATCH 09/18] Support detection on btrfs software raid (#906847)
e8c52d
e8c52d
Update btrfs support to include detecting systems where the btrfs
e8c52d
filesystem sits on top of software raid.
e8c52d
e8c52d
Resolves: rhbz#906847
e8c52d
---
e8c52d
 os-prober | 2 +-
e8c52d
 1 file changed, 1 insertion(+), 1 deletion(-)
e8c52d
e8c52d
diff --git a/os-prober b/os-prober
e8c52d
index ca8f5ab..f5052af 100755
e8c52d
--- a/os-prober
e8c52d
+++ b/os-prober
e8c52d
@@ -149,7 +149,7 @@ for partition in $(partitions); do
e8c52d
 
e8c52d
 	# do btrfs processing here; both mounted and unmounted will
e8c52d
 	# be handled by 50mounted-tests so we can do a subvol only once.
e8c52d
-	type=$(blkid -o value -s TYPE $mapped)
e8c52d
+	type=$(blkid -o value -s TYPE $mapped || true)
e8c52d
 	if [ "$type" = btrfs ]; then
e8c52d
 		uuid=$(blkid -o value -s UUID $mapped)
e8c52d
 		if grep -q "^$uuid" "$OS_PROBER_TMP/btrfs-vols" ; then
e8c52d
-- 
e8c52d
2.5.5
e8c52d