Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-16 15:17:42 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-16 15:17:42 +0000
commit28912654099266d91c743d31e8c1ea80aee1eab6 (patch)
treebc559c2f91635c972e333ccd8bf3f315b14b8b5a /archinstall/lib/installer.py
parentc16872531e4c70343a472276f91fceae57ddc9ac (diff)
Safe dictionary retrieval
Diffstat (limited to 'archinstall/lib/installer.py')
-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]}")