From 7a9c58141da66fee570dee20a4d29e15753d808b Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 23 Feb 2023 08:06:12 +0100 Subject: [PATCH] Added missing check of disk encryption is None or not. --- archinstall/lib/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 1f928df2..7e9e1fc6 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -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.