Added missing check of disk encryption is None or not.

This commit is contained in:
Anton Hvornum 2023-02-23 08:06:12 +01:00
parent b57ec8e3f0
commit 7a9c58141d
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -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.