(self)
| 259 | self._verify_service_stop(offline, skip_ntp, skip_wkd) |
| 260 | |
| 261 | def mount_ordered_layout(self) -> None: |
| 262 | debug('Mounting ordered layout') |
| 263 | |
| 264 | luks_handlers: dict[Any, Luks2] = {} |
| 265 | |
| 266 | match self._disk_encryption.encryption_type: |
| 267 | case EncryptionType.NO_ENCRYPTION: |
| 268 | self._import_lvm() |
| 269 | self._mount_lvm_layout() |
| 270 | case EncryptionType.LUKS: |
| 271 | luks_handlers = self._prepare_luks_partitions(self._disk_encryption.partitions) |
| 272 | case EncryptionType.LVM_ON_LUKS: |
| 273 | luks_handlers = self._prepare_luks_partitions(self._disk_encryption.partitions) |
| 274 | self._import_lvm() |
| 275 | self._mount_lvm_layout(luks_handlers) |
| 276 | case EncryptionType.LUKS_ON_LVM: |
| 277 | self._import_lvm() |
| 278 | luks_handlers = self._prepare_luks_lvm(self._disk_encryption.lvm_volumes) |
| 279 | self._mount_lvm_layout(luks_handlers) |
| 280 | |
| 281 | # mount all regular partitions |
| 282 | self._mount_partition_layout(luks_handlers) |
| 283 | |
| 284 | def _mount_partition_layout(self, luks_handlers: dict[Any, Luks2]) -> None: |
| 285 | debug('Mounting partition layout') |
no test coverage detected