From 492e2932e7b79819c0416bdefa5e67d3d67823b9 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 26 Jan 2013 22:29:36 +0100 Subject: [PATCH] anaconda: make encrypted partitions by default --- anaconda/pyanaconda/kickstart.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/anaconda/pyanaconda/kickstart.py b/anaconda/pyanaconda/kickstart.py index d3239d2..62200ee 100644 --- a/anaconda/pyanaconda/kickstart.py +++ b/anaconda/pyanaconda/kickstart.py @@ -242,7 +242,13 @@ class Authconfig(commands.authconfig.FC3_Authconfig): except RuntimeError as msg: log.error("Error running /usr/sbin/authconfig %s: %s", args, msg) -class AutoPart(commands.autopart.F18_AutoPart): +class Qubes2_AutoPart(commands.autopart.F18_AutoPart): + def __init__(self, writePriority=100, *args, **kwargs): + if 'encrypted' not in kwargs: + kwargs['encrypted'] = True + super(Qubes2_AutoPart, self).__init__(writePriority=writePriority, *args, **kwargs) + +class AutoPart(Qubes2_AutoPart): def execute(self, storage, ksdata, instClass): from pyanaconda.storage.partitioning import doAutoPartition