Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-16 15:18:17 +0000
committerGitHub <noreply@github.com>2021-11-16 15:18:17 +0000
commit8799973895a8bb198c72522535852b3a9bfe83d9 (patch)
treebc559c2f91635c972e333ccd8bf3f315b14b8b5a
parentc16872531e4c70343a472276f91fceae57ddc9ac (diff)
parent28912654099266d91c743d31e8c1ea80aee1eab6 (diff)
Merge PR #722 - Fixes #721
Safe dictionary retrieval
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index df0ddcdb..40f6410b 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -175,7 +175,7 @@ class Installer:
for mountpoint in sorted(mountpoints.keys()):
log(f"Mounting {mountpoint} to {self.target}{mountpoint}", level=logging.INFO)
- if mountpoints[mountpoint]['encrypted']:
+ if mountpoints[mountpoint].get('encrypted', False):
loopdev = storage.get('ENC_IDENTIFIER', 'ai') + 'loop'
if not (password := mountpoints[mountpoint].get('!password', None)):
raise RequirementError(f"Missing mountpoint {mountpoint} encryption password in layout: {mountpoints[mountpoint]}")