index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | codefiles <11915375+codefiles@users.noreply.github.com> | 2023-04-04 03:46:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 09:46:49 +0200 |
commit | 5689d4f59f4f08465d2ef72412f5819e9df87430 (patch) | |
tree | 5b6ace40633ed5a5d75b2ab2341201a1504057ff /archinstall/lib | |
parent | e77f90cef078f66ecc0569401a3a43026768be3a (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 9 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index f1c7b3db..b33a1a34 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -919,7 +919,7 @@ class Installer: kernel_options = f"options" - if self._disk_encryption.hsm_device: + if self._disk_encryption and self._disk_encryption.hsm_device: # Note: lsblk UUID must be used, not PARTUUID for sd-encrypt to work kernel_options += f" rd.luks.name={real_device.uuid}=luksdev" # Note: tpm2-device and fido2-device don't play along very well: @@ -929,13 +929,6 @@ class Installer: kernel_options += f" cryptdevice=PARTUUID={real_device.part_uuid}:luksdev" entry.write(f'{kernel_options} root=/dev/mapper/luksdev {options_entry}') - - if self._disk_encryption and self._disk_encryption.hsm_device: - # Note: lsblk UUID must be used, not PARTUUID for sd-encrypt to work - kernel_options += f" rd.luks.name={real_device.uuid}=luksdev" - # Note: tpm2-device and fido2-device don't play along very well: - # https://github.com/archlinux/archinstall/pull/1196#issuecomment-1129715645 - kernel_options += f" rd.luks.options=fido2-device=auto,password-echo=no" else: log(f"Identifying root partition by PARTUUID on {root_partition}, looking for '{root_partition.part_uuid}'.", level=logging.DEBUG) entry.write(f'options root=PARTUUID={root_partition.part_uuid} {options_entry}') |