summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-06 23:30:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-06 23:30:52 +0000
commit328777b82443da8e914fc0fdd7c9164748685fcb (patch)
treeb675253a882748afecc2cdbc4e4e63c0ab96c60c /perl-install
parente8c29581998c88c7ec255d5b02549815a722929d (diff)
downloaddrakx-backup-do-not-use-328777b82443da8e914fc0fdd7c9164748685fcb.tar
drakx-backup-do-not-use-328777b82443da8e914fc0fdd7c9164748685fcb.tar.gz
drakx-backup-do-not-use-328777b82443da8e914fc0fdd7c9164748685fcb.tar.bz2
drakx-backup-do-not-use-328777b82443da8e914fc0fdd7c9164748685fcb.tar.xz
drakx-backup-do-not-use-328777b82443da8e914fc0fdd7c9164748685fcb.zip
(check_mntpoint): don't allow LVM on / or /boot
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/fsedit.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 71c54e20f..e936d71c6 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -281,6 +281,7 @@ sub check_mntpoint {
$check->($fake_part) unless $mntpoint eq '/' && $loopbackDevice; #- '/' is a special case, no loop check
die "raid / with no /boot" if $mntpoint eq "/" && isMDRAID($part) && !has_mntpoint("/boot", $hds);
+ die _("You can't use a LVM Logical Volume for mount point %s", $mntpoint) if ($mntpoint eq '/' || $mntpoint '/boot') && isLVMBased($hd);
die _("This directory should remain within the root filesystem") if member($mntpoint, qw(/bin /dev /etc /lib /sbin));
die _("You need a true filesystem (ext2, reiserfs) for this mount point\n") if !isTrueFS($part) && member($mntpoint, qw(/ /home /tmp /usr /var));
#- if ($part->{start} + $part->{size} > 1024 * $hd->cylinder_size() && arch() =~ /i.86/) {