From 4dcfaba58706816d17f6a9ada5ef20484ab4f4ae Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 17 Sep 2003 12:24:39 +0000 Subject: when the checking the mount point is not already used, don't take into account current partition --- perl-install/fsedit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/fsedit.pm') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index f3c5b763d..2ed4b53a3 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -525,7 +525,7 @@ sub check_mntpoint { $mntpoint eq '' || isSwap($part) || isNonMountable($part) and return; $mntpoint =~ m|^/| or die \N("Mount points must begin with a leading /"); $mntpoint =~ m|[\x7f-\xff]| and cdie \N("Mount points should contain only alphanumerical characters"); - has_mntpoint($mntpoint, $all_hds) and die \N("There is already a partition with mount point %s\n", $mntpoint); + mntpoint2part($mntpoint, [ grep { $_ ne $part } get_really_all_fstab($all_hds) ]) and die \N("There is already a partition with mount point %s\n", $mntpoint); cdie \N("You've selected a software RAID partition as root (/). No bootloader is able to handle this without a /boot partition. -- cgit v1.2.1