diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2010-04-29 13:33:17 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2010-04-29 13:33:17 +0000 |
commit | 8967af08327daac4cdca221971fd790961039cbe (patch) | |
tree | d34b7786399cde5144126b51789af4a96b441e91 /perl-install/fsedit.pm | |
parent | fe7f2ec10a2c352db4c457df549326cee511b06b (diff) | |
download | drakx-8967af08327daac4cdca221971fd790961039cbe.tar drakx-8967af08327daac4cdca221971fd790961039cbe.tar.gz drakx-8967af08327daac4cdca221971fd790961039cbe.tar.bz2 drakx-8967af08327daac4cdca221971fd790961039cbe.tar.xz drakx-8967af08327daac4cdca221971fd790961039cbe.zip |
refuse to have /boot encrypted
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 5c796bafd..8c8561b2a 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -433,6 +433,16 @@ No bootloader is able to handle this without a /boot partition. Please be sure to add a /boot partition") if $md_part->{level} ne '1'; # lilo handles / on RAID1 } + if ($mntpoint eq "/" && isLUKS($part) && !fs::get::has_mntpoint("/boot", $all_hds)) { + cdie N("You've selected an encrypted partition as root (/). +No bootloader is able to handle this without a /boot partition. +Please be sure to add a /boot partition"); + } + + if ($mntpoint eq "/boot" && isLUKS($part)) { + die N("You can not use an encrypted file system for mount point %s", "/boot"); + } + #- NB: if the LV doesn't exist, lv_nb_pvs returns 0 die N("You can not use the 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; |