mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-23 10:25:45 -05:00
Merge pull request #2314 from eugenesan/i2310
Refactor crypto_keyfile addition in fstab module and skip it when it's missing
This commit is contained in:
commit
da2ed4728a
1 changed files with 5 additions and 1 deletions
|
@ -151,8 +151,12 @@ class FstabGenerator(object):
|
|||
if not mapper_name or not luks_uuid:
|
||||
return None
|
||||
|
||||
password = "/crypto_keyfile.bin"
|
||||
crypttab_options = self.crypttab_options
|
||||
# Make sure to not use missing keyfile
|
||||
if os.path.isfile(os.path.join(self.root_mount_point, "crypto_keyfile.bin")):
|
||||
password = "/crypto_keyfile.bin"
|
||||
else:
|
||||
password = "none"
|
||||
|
||||
# Set crypttab password for partition to none and remove crypttab options
|
||||
# if root partition was not encrypted
|
||||
|
|
Loading…
Add table
Reference in a new issue