From 5a477d971beb009195ed4cb45233ebb0e8a82440 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 30 Apr 2010 08:49:00 +0000 Subject: fix the crypto mountpoint checks for the create case when creating current partition is of type isRawLUKS, not yet LUKS --- perl-install/fsedit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/fsedit.pm') diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 8c8561b2a..6b71d372d 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -433,13 +433,13 @@ 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)) { + if ($mntpoint eq "/" && (isLUKS($part) || isRawLUKS($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)) { + if ($mntpoint eq "/boot" && (isLUKS($part) || isRawLUKS($part))) { die N("You can not use an encrypted file system for mount point %s", "/boot"); } -- cgit v1.2.1