summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-12-03 16:42:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-12-03 16:42:55 +0000
commitfb9200c7be8ac9c494c022ea8a873ac4f06b496f (patch)
tree68748b006225cdcc4a0c6cac6de673cb93a193af
parent3080a2db1ef1c6c89b8b915795687f12b8ef2962 (diff)
downloaddrakx-fb9200c7be8ac9c494c022ea8a873ac4f06b496f.tar
drakx-fb9200c7be8ac9c494c022ea8a873ac4f06b496f.tar.gz
drakx-fb9200c7be8ac9c494c022ea8a873ac4f06b496f.tar.bz2
drakx-fb9200c7be8ac9c494c022ea8a873ac4f06b496f.tar.xz
drakx-fb9200c7be8ac9c494c022ea8a873ac4f06b496f.zip
- don't check /proc/partitions for a partition_table::lvm
(ie PV on non partitioned drive) (also committed in fs/proc_partitions.pm)
-rw-r--r--perl-install/patch/patch-LVM-PV-on-full-disk.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl-install/patch/patch-LVM-PV-on-full-disk.pl b/perl-install/patch/patch-LVM-PV-on-full-disk.pl
new file mode 100644
index 000000000..8f9060f5c
--- /dev/null
+++ b/perl-install/patch/patch-LVM-PV-on-full-disk.pl
@@ -0,0 +1,14 @@
+use fs::proc_partitions;
+package fs::proc_partitions;
+
+log::l("PATCH: not checking /proc/partitions for partition_table::lvm");
+
+my $real_compare = \&compare;
+undef *compare;
+*compare = sub {
+ my ($hd) = @_;
+
+ eval { $hd->isa('partition_table::lvm') } and return;
+
+ &$real_compare;
+};