diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 06:09:56 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-07-01 06:09:56 +0000 |
commit | 36ff13fecc898737614aafab4a2813a2f161f9fa (patch) | |
tree | c40799ede6817b8497effa8d36eb32cb0f778e0e /perl-install/fsedit.pm | |
parent | f04cae4ca3dea07ce237410905c2b2f731686f5e (diff) | |
download | drakx-36ff13fecc898737614aafab4a2813a2f161f9fa.tar drakx-36ff13fecc898737614aafab4a2813a2f161f9fa.tar.gz drakx-36ff13fecc898737614aafab4a2813a2f161f9fa.tar.bz2 drakx-36ff13fecc898737614aafab4a2813a2f161f9fa.tar.xz drakx-36ff13fecc898737614aafab4a2813a2f161f9fa.zip |
replace lv_nb_segments() with lv_nb_pvs()
(which is really what lilo cares about. lilo error is "mapped boot device cannot be on multiple real devices")
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index dcc87b6db..f17d5c151 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -386,12 +386,12 @@ sub check_mntpoint { No bootloader is able to handle this without a /boot partition. Please be sure to add a /boot partition") if $mntpoint eq "/" && isRAID($part) && !fs::get::has_mntpoint("/boot", $all_hds); - #- NB: if the LV doesn't exist, lv_nb_segments returns undef - die N("You can not use a LVM Logical Volume for mount point %s", $mntpoint) - if $mntpoint eq '/boot' && isLVM($part) && lvm::lv_nb_segments($part) > 1; + #- NB: if the LV doesn't exist, lv_nb_pvs returns 0 + die N("You can not use a LVM Logical Volume for mount point %s since it spans physical volumes", $mntpoint) + if $mntpoint eq '/boot' && isLVM($part) && lvm::lv_nb_pvs($part) > 1; cdie N("You've selected a LVM Logical Volume as root (/). The bootloader is not able to handle this when the volume spans physical volumes. -You should create a /boot partition first") if $mntpoint eq "/" && isLVM($part) && lvm::lv_nb_segments($part) != 1 && !fs::get::has_mntpoint("/boot", $all_hds); +You should create a /boot partition first") if $mntpoint eq "/" && isLVM($part) && lvm::lv_nb_pvs($part) != 1 && !fs::get::has_mntpoint("/boot", $all_hds); cdie N("This directory should remain within the root filesystem") if member($mntpoint, qw(/root)); |