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

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