summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-06 20:32:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-06 20:32:06 +0000
commit5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9 (patch)
treef4a30a506faae977831725039ab61a7144625130 /perl-install/fsedit.pm
parentd0f59f694d384ef30a13a802a593c9b40dd4f708 (diff)
downloaddrakx-5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9.tar
drakx-5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9.tar.gz
drakx-5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9.tar.bz2
drakx-5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9.tar.xz
drakx-5e895f5e7a5fc732bb96a0853d9ea71c5425a1d9.zip
/root and /mnt must "remain within the root filesystem" (ie can't be used as mountpoints), dixit redhat
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index f237a8a8c..afff117ad 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -44,6 +44,7 @@ foreach (values %suggestions) {
my @suggestions_mntpoints = (
"/var/ftp", "/var/www", "/boot", '/tmp',
arch() =~ /sparc/ ? "/mnt/sunos" : arch() =~ /ppc/ ? "/mnt/macos" : "/mnt/windows",
+ #- RedHat also has /usr/local and /opt
);
my @partitions_signatures = (
@@ -492,7 +493,7 @@ sub check_mntpoint {
die _("You can't use a LVM Logical Volume for mount point %s", $mntpoint)
if ($mntpoint eq '/' || $mntpoint eq '/boot') && isLVM($hd);
die _("This directory should remain within the root filesystem")
- if member($mntpoint, qw(/bin /dev /etc /lib /sbin));
+ if member($mntpoint, qw(/bin /dev /etc /lib /sbin /root /mnt));
die _("You need a true filesystem (ext2/ext3, reiserfs, xfs, or jfs) for this mount point\n")
if !isTrueFS($part) && member($mntpoint, qw(/ /home /tmp /usr /var));
die _("You can't use an encrypted file system for mount point %s", $mntpoint)