From 3c825b15f52f521a681b177a50b4f1ff41a7711f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 1 Feb 2005 09:20:28 +0000 Subject: ensure isLVM() works on both the VG and the partitions (isLVM() on a part was already used once in fsedit::check_mntpoint()) --- perl-install/fs/type.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm index 57de303c3..974eaf36a 100644 --- a/perl-install/fs/type.pm +++ b/perl-install/fs/type.pm @@ -335,7 +335,7 @@ sub isPartOfRAID { defined $_[0]{raid} } sub isPartOfLoopback { defined $_[0]{loopback} } sub isRAID { $_[0]{device} =~ /^md/ } sub isUBD { $_[0]{device} =~ /^ubd/ } #- should be always true during an $::uml_install -sub isLVM { $_[0]{VG_name} } +sub isLVM { $_[0]{VG_name} || $_[0]{lv_name} } sub isLoopback { defined $_[0]{loopback_file} } sub isMounted { $_[0]{isMounted} } sub isBusy { isMounted($_[0]) || isPartOfRAID($_[0]) || isPartOfLVM($_[0]) || isPartOfLoopback($_[0]) } -- cgit v1.2.1