diff --git a/rear-bz2117937.patch b/rear-bz2117937.patch new file mode 100644 index 0000000..24e6fb5 --- /dev/null +++ b/rear-bz2117937.patch @@ -0,0 +1,18 @@ +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 +index 4b73fb05..c7704032 100644 +--- a/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh ++++ b/usr/share/rear/prep/GNU/Linux/220_include_lvm_tools.sh +@@ -8,6 +8,13 @@ PROGS+=( lvm dmsetup dmeventd fsadm ) + + COPY_AS_IS+=( /etc/lvm ) + ++# Workaround for a LVM segfault when creating a PV with an UUID already present ++# in the device file: omit the device file from the rescue system ++# https://bugzilla.redhat.com/show_bug.cgi?id=2117937 ++# proper fix: ++# https://sourceware.org/git/?p=lvm2.git;a=commit;h=8c3cfc75c72696ae8b620555fcc4f815b0c1d6b6 ++COPY_AS_IS_EXCLUDE+=( /etc/lvm/devices ) ++ + if lvs --noheadings -o thin_count | grep -q -v "^\s*$" ; then + # There are Thin Pools on the system, include required binaries + PROGS+=( thin_check ) diff --git a/rear.spec b/rear.spec index 1b4d8b2..4cdcdb4 100644 --- a/rear.spec +++ b/rear.spec @@ -39,6 +39,7 @@ Patch48: rear-bz2111059.patch Patch49: rsync-output.patch Patch50: rear-bz2119501.patch Patch51: rear-bz2120736.patch +Patch52: rear-bz2117937.patch # rear contains only bash scripts plus documentation so that on first glance it could be "BuildArch: noarch" # but actually it is not "noarch" because it only works on those architectures that are explicitly supported.