Skip to content

Commit

Permalink
Fix encryption debug message in _add_efistub_bootloader() (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles committed Sep 16, 2023
1 parent 2cc0d64 commit c9e2027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archinstall/lib/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,10 +1073,10 @@ def _add_efistub_bootloader(
if root_partition in self._disk_encryption.partitions:
# TODO: We need to detect if the encrypted device is a whole disk encryption,
# or simply a partition encryption. Right now we assume it's a partition (and we always have)
debug(f'Identifying root partition by PARTUUID: {root_partition.partuuid}')
debug(f'Root partition is an encrypted device identifying by PARTUUID: {root_partition.partuuid}')
kernel_parameters.append(f'cryptdevice=PARTUUID={root_partition.partuuid}:luksdev root=/dev/mapper/luksdev rw rootfstype={root_partition.safe_fs_type.value} {" ".join(self._kernel_params)}')
else:
debug(f'Root partition is an encrypted device identifying by PARTUUID: {root_partition.partuuid}')
debug(f'Identifying root partition by PARTUUID: {root_partition.partuuid}')
kernel_parameters.append(f'root=PARTUUID={root_partition.partuuid} rw rootfstype={root_partition.safe_fs_type.value} {" ".join(self._kernel_params)}')

parent_dev_path = disk.device_handler.get_parent_device_path(boot_partition.safe_dev_path)
Expand Down

0 comments on commit c9e2027

Please sign in to comment.