Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/luks.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 15:15:53 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-08 15:15:53 +0000
commit46c8e74a7311dc11ebf8911acbc29fbb6e1bc45a (patch)
tree6cc9b3058c96ce2c0071a7c951d5a643239d633b /archinstall/lib/luks.py
parent24a384cddbd35d658f2951c861d12898ddee04b3 (diff)
Trying to sort out a boot issue
Diffstat (limited to 'archinstall/lib/luks.py')
-rw-r--r--archinstall/lib/luks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index 71e634e1..e56f3bd2 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -46,7 +46,7 @@ class luks2():
if '/' in mountpoint: os.path.basename(mountpoint) # TODO: Raise exception instead?
sys_command(f'/usr/bin/cryptsetup open {partition.path} {mountpoint} --key-file {os.path.abspath(key_file)} --type luks2')
if os.path.islink(f'/dev/mapper/{mountpoint}'):
- return Partition(f'/dev/mapper/{mountpoint}')
+ return Partition(f'/dev/mapper/{mountpoint}', encrypted=True)
def close(self, mountpoint):
sys_command(f'cryptsetup close /dev/mapper/{mountpoint}')