anaconda: fix encryption passphrase check
The installer checks if there is password for autopart. It should check that only if autopart is actually in use. QubesOS/qubes-issues#2180
This commit is contained in:
parent
57af9604e1
commit
e22de13063
@ -343,7 +343,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
|
||||
# on the off-chance dasdfmt is running, we can't proceed further
|
||||
threadMgr.wait(constants.THREAD_DASDFMT)
|
||||
hubQ.send_message(self.__class__.__name__, _("Saving storage configuration..."))
|
||||
if flags.automatedInstall and self.data.autopart.encrypted and not self.data.autopart.passphrase:
|
||||
if flags.automatedInstall and self.data.autopart.autopart and self.data.autopart.encrypted and not self.data.autopart.passphrase:
|
||||
self.autopart_missing_passphrase = True
|
||||
StorageChecker.errors = [_("Passphrase for autopart encryption not specified.")]
|
||||
self._ready = True
|
||||
|
Loading…
Reference in New Issue
Block a user