Proper check for luksMapperName key.

This commit is contained in:
Teo Mrnjavac 2016-05-05 12:49:58 +02:00
parent b792ea0216
commit e1ee6e181a
3 changed files with 4 additions and 3 deletions

View file

@ -40,7 +40,8 @@ def mount_partitions(root_mount_point, partitions):
if fstype == "fat16" or fstype == "fat32":
fstype = "vfat"
if partition["luksMapperName"]:
if "luksMapperName" in partition:
libcalamares.utils.debug("about to mount {!s}".format(partition["luksMapperName"]))
libcalamares.utils.mount(partition["luksMapperName"],
mount_point,
fstype,