From 8974ec2c9659a7e55fe1cbb411ce5e8e61bc7f97 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 22 Sep 2004 04:24:59 +0000 Subject: silently ignore encrypted filesystems with no encrypt_key --- perl-install/fs.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 8c790cdec..9f6fc68cf 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -548,6 +548,9 @@ sub mount_part { my $mntpoint = ($o_prefix || '') . $part->{mntpoint}; if (isLoopback($part) || $part->{encrypt_key}) { set_loop($part); + } elsif ($part->{options} =~ /encrypted/) { + log::l("skip mounting $part->{device} since we don't have the encrypt_key"); + return; } elsif (loopback::carryRootLoopback($part)) { $mntpoint = "/initrd/loopfs"; } -- cgit v1.2.1