summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-07-09 13:59:01 -0500
committerDavid Lehman <dlehman@redhat.com>2008-07-09 15:46:02 -0500
commit83aa77131931dd22f73826d22e55b197148557d9 (patch)
treea5900f3092ecf405e744d7d0ad7a68768bb41a55 /partitions.py
parent3fb5befb352d982c539a230e2e3679e5b2a45822 (diff)
downloadanaconda-83aa77131931dd22f73826d22e55b197148557d9.tar.gz
anaconda-83aa77131931dd22f73826d22e55b197148557d9.tar.xz
anaconda-83aa77131931dd22f73826d22e55b197148557d9.zip
Partitioning with encrypted block devices. (#229865)
Block device encryption patch 2/7 Represent block device encryption in partition requests and enable encrypted autopart.
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py
index c64309fe4..572be9277 100644
--- a/partitions.py
+++ b/partitions.py
@@ -72,6 +72,9 @@ class Partitions:
self.zeroMbr = 0
"""Should the mbr be zero'd?"""
+ self.autoEncrypt = False
+ self.autoEncryptPass = ""
+
# partition method to be used. not to be touched externally
self.useAutopartitioning = 1
self.useFdisk = 0
@@ -1017,6 +1020,10 @@ class Partitions:
errors.append("Bootable partitions cannot be on an XFS "
"filesystem.")
+ if (bootreq.isEncrypted(self)):
+ errors.append("Bootable partitions cannot be on an "
+ "encrypted block device")
+
# no gfs support in grub
if (bootreq and bootreq.fstype and
bootreq.fstype.getName() == "gfs2"):