MCPcopy Create free account
hub / github.com/archlinux/archinstall / _prev_disk_config

Method _prev_disk_config

archinstall/lib/global_menu.py:384–406  ·  view source on GitHub ↗
(self, item: MenuItem)

Source from the content-addressed store, hash-verified

382 return None
383
384 def _prev_disk_config(self, item: MenuItem) -> str | None:
385 disk_layout_conf: DiskLayoutConfiguration | None = item.value
386
387 if disk_layout_conf:
388 output = tr('Configuration type: {}').format(disk_layout_conf.config_type.display_msg()) + '\n'
389
390 if disk_layout_conf.config_type == DiskLayoutType.Pre_mount:
391 output += tr('Mountpoint') + ': ' + str(disk_layout_conf.mountpoint)
392
393 if disk_layout_conf.lvm_config:
394 output += '{}: {}'.format(tr('LVM configuration type'), disk_layout_conf.lvm_config.config_type.display_msg()) + '\n'
395
396 if disk_layout_conf.disk_encryption:
397 output += tr('Disk encryption') + ': ' + disk_layout_conf.disk_encryption.encryption_type.type_to_text() + '\n'
398
399 if disk_layout_conf.btrfs_options:
400 btrfs_options = disk_layout_conf.btrfs_options
401 if btrfs_options.snapshot_config:
402 output += tr('Btrfs snapshot type: {}').format(btrfs_options.snapshot_config.snapshot_type.value) + '\n'
403
404 return output
405
406 return None
407
408 def _prev_swap(self, item: MenuItem) -> str | None:
409 if item.value is not None:

Callers

nothing calls this directly

Calls 4

trFunction · 0.90
formatMethod · 0.80
type_to_textMethod · 0.80
display_msgMethod · 0.45

Tested by

no test coverage detected