|
| 1 | +import textwrap |
1 | 2 | from typing import override |
2 | 3 |
|
3 | 4 | from archinstall.lib.translationhandler import tr |
@@ -153,17 +154,26 @@ def ask_for_bootloader(preset: Bootloader | None) -> Bootloader | None: |
153 | 154 |
|
154 | 155 | def ask_for_bootloader_removable(preset: bool = False) -> bool: |
155 | 156 | prompt = ( |
156 | | - tr('Would you like to install the bootloader to the default removable media search location?\n') |
157 | | - + '\n' |
158 | | - + tr('This installs the bootloader to /EFI/BOOT/BOOTX64.EFI (or similar) which is useful for:\n') |
159 | | - + '\n' |
160 | | - + tr(' • USB drives or other portable external media\n') |
161 | | - + tr(' • Systems where you want the disk to be bootable on any computer\n') |
162 | | - + tr(' • Firmware that does not properly support NVRAM boot entries\n') |
| 157 | + tr('Would you like to install the bootloader to the default removable media search location?') |
| 158 | + + '\n\n' |
| 159 | + + tr('This installs the bootloader to /EFI/BOOT/BOOTX64.EFI (or similar) which is useful for:') |
| 160 | + + '\n\n • ' |
| 161 | + + tr('USB drives or other portable external media.') |
| 162 | + + '\n • ' |
| 163 | + + tr('Systems where you want the disk to be bootable on any computer.') |
| 164 | + + '\n • ' |
| 165 | + + tr('Firmware that does not properly support NVRAM boot entries.') |
| 166 | + + '\n\n' |
| 167 | + + tr( |
| 168 | + textwrap.dedent( |
| 169 | + """\ |
| 170 | + This is NOT recommended if none of the above apply, as it makes installing multiple |
| 171 | + EFI bootloaders on the same disk more challenging, and it overwrites whatever bootloader |
| 172 | + was previously installed on the default removable media search location, if any. |
| 173 | + """ |
| 174 | + ) |
| 175 | + ) |
163 | 176 | + '\n' |
164 | | - + tr('This is NOT recommended if none of the above apply, as it makes installing multiple\n') |
165 | | - + tr('EFI bootloaders on the same disk more challenging, and it overwrites whatever bootloader\n') |
166 | | - + tr('was previously installed on the default removable media search location, if any.\n') |
167 | 177 | ) |
168 | 178 |
|
169 | 179 | group = MenuItemGroup.yes_no() |
|
0 commit comments