From a2658d55bf1a3c887ae624fdb6a35ec81ee94ccd Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 23 Mar 2001 17:19:01 +0000 Subject: (change_type): When changing a partition type from ext2fs to Linux RAID (or LVM), the mount point should be removed. --- perl-install/fsedit.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 5cde8036c..0cad90d51 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -408,6 +408,7 @@ sub change_type($$$) { $type != $part->{type} or return; $hd->{isDirty} = 1; $part->{mntpoint} = '' if isSwap($part) && $part->{mntpoint} eq "swap"; + $part->{mntpoint} = '' if isLVM({ type => $type }) || isRAID({ type => $type }); $part->{type} = $type; $part->{notFormatted} = 1; $part->{isFormatted} = 0; -- cgit v1.2.1