diff options
Diffstat (limited to '')
-rw-r--r-- | debian/patches/probe-lvs-again.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/probe-lvs-again.patch b/debian/patches/probe-lvs-again.patch new file mode 100644 index 0000000..77139c0 --- /dev/null +++ b/debian/patches/probe-lvs-again.patch @@ -0,0 +1,34 @@ +From 20f1477293d180b2141ae7f1047ff5df84d42826 Mon Sep 17 00:00:00 2001 +From: Colin Watson <cjwatson@ubuntu.com> +Date: Sat, 9 Aug 2014 16:23:26 +0200 +Subject: Probe LVM logical volumes again + +parted 3.2 stopped probing LVM logical volumes. This breaks +debian-installer, which wants to be able to "partition" these, at least +to the extent of being able to see them in the partitioner and operate +on them somewhat like ordinary partitions. Revert to the old behaviour. + +Bug-Debian: http://bugs.debian.org/757417 +Forwarded: no +Last-Update: 2014-08-11 + +Patch-Name: probe-lvs-again.patch +--- + libparted/arch/linux.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c +index f6f72360..3bad1e6e 100644 +--- a/libparted/arch/linux.c ++++ b/libparted/arch/linux.c +@@ -608,8 +608,8 @@ _probe_dm_devices () + if (stat (buf, &st) != 0) + continue; + +- if (_is_dm_major(major(st.st_rdev)) && _is_dmraid_device (buf) +- && !_dm_is_part(buf)) ++ if (_is_dm_major(major(st.st_rdev)) ++ && !(_is_dmraid_device(buf) && _dm_is_part(buf))) + _ped_device_probe (buf); + } + closedir (mapper_dir); |