MCPcopy Index your code
hub / github.com/archlinux/archinstall / DiskLayoutType

Class DiskLayoutType

archinstall/lib/models/device.py:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24class DiskLayoutType(Enum):
25 Default = 'default_layout'
26 Manual = 'manual_partitioning'
27 Pre_mount = 'pre_mounted_config'
28
29 def display_msg(self) -> str:
30 match self:
31 case DiskLayoutType.Default:
32 return tr('Use a best-effort default partition layout')
33 case DiskLayoutType.Manual:
34 return tr('Manual Partitioning')
35 case DiskLayoutType.Pre_mount:
36 return tr('Pre-mounted configuration')
37
38 def short_msg(self) -> str:
39 match self:
40 case DiskLayoutType.Default:
41 return tr('Default')
42 case DiskLayoutType.Manual:
43 return tr('Manual')
44 case DiskLayoutType.Pre_mount:
45 return tr('Pre-mount')
46
47
48class _DiskLayoutConfigurationSerialization(TypedDict):

Callers 1

parse_argMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected