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

Method preview

archinstall/lib/models/bootloader.py:135–155  ·  view source on GitHub ↗
(self, uefi: bool)

Source from the content-addressed store, hash-verified

133 return cls(bootloader=bootloader, uki=uki, removable=removable, plymouth=plymouth)
134
135 def preview(self, uefi: bool) -> str:
136 text = f'{tr("Bootloader")}: {self.bootloader.value}'
137 text += '\n'
138 if uefi and self.bootloader.has_uki_support():
139 if self.uki:
140 uki_string = tr('Enabled')
141 else:
142 uki_string = tr('Disabled')
143 text += f'UKI: {uki_string}'
144 text += '\n'
145 if uefi and self.bootloader.has_removable_support():
146 if self.removable:
147 removable_string = tr('Enabled')
148 else:
149 removable_string = tr('Disabled')
150 text += f'{tr("Removable")}: {removable_string}'
151 text += '\n'
152 if self.plymouth is not None:
153 text += f'{tr("Plymouth")}: {self.plymouth.value}'
154 text += '\n'
155 return text

Callers

nothing calls this directly

Calls 3

trFunction · 0.90
has_uki_supportMethod · 0.80
has_removable_supportMethod · 0.80

Tested by

no test coverage detected