Added missing check of disk encryption is None or not.
This commit is contained in:
parent
b57ec8e3f0
commit
7a9c58141d
|
|
@ -755,7 +755,7 @@ class Installer:
|
|||
# TODO: Use python functions for this
|
||||
SysCommand(f'/usr/bin/arch-chroot {self.target} chmod 700 /root')
|
||||
|
||||
if self._disk_encryption.hsm_device:
|
||||
if self._disk_encryption and self._disk_encryption.hsm_device:
|
||||
# TODO:
|
||||
# A bit of a hack, but we need to get vconsole.conf in there
|
||||
# before running `mkinitcpio` because it expects it in HSM mode.
|
||||
|
|
|
|||
Loading…
Reference in New Issue