Blame SOURCES/rear-bz2117937.patch

ec6e77
diff --git a/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh b/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh
ec6e77
index 4b73fb05..c7704032 100644
ec6e77
--- a/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh
ec6e77
+++ b/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh
ec6e77
@@ -8,6 +8,13 @@ PROGS+=( lvm dmsetup dmeventd fsadm )
ec6e77
 
ec6e77
 COPY_AS_IS+=( /etc/lvm )
ec6e77
 
ec6e77
+# Workaround for a LVM segfault when creating a PV with an UUID already present
ec6e77
+# in the device file: omit the device file from the rescue system
ec6e77
+# https://bugzilla.redhat.com/show_bug.cgi?id=2117937
ec6e77
+# proper fix:
ec6e77
+# https://sourceware.org/git/?p=lvm2.git;a=commit;h=8c3cfc75c72696ae8b620555fcc4f815b0c1d6b6
ec6e77
+COPY_AS_IS_EXCLUDE+=( /etc/lvm/devices )
ec6e77
+
ec6e77
 if lvs --noheadings -o thin_count | grep -q -v "^\s*$" ; then
ec6e77
     # There are Thin Pools on the system, include required binaries
ec6e77
     PROGS+=( thin_check )