* Modify formatting warning text to be less scary

* Update

---------

Co-authored-by: Daniel Girtler <dgirtler@atlassian.com>
This commit is contained in:
Daniel Girtler 2025-11-01 21:55:54 +11:00 committed by GitHub
parent ed67e9fd67
commit adbadbf606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -43,10 +43,8 @@ class FilesystemHandler:
debug('No modifications required')
return
device_paths = ', '.join([str(mod.device.device_info.path) for mod in device_mods])
if show_countdown:
self._final_warning(device_paths)
self._final_warning()
# Setup the blockdevice, filesystem (and optionally encryption).
# Once that's done, we'll hand over to perform_installation()
@ -337,10 +335,10 @@ class FilesystemHandler:
Size(256, Unit.MiB, SectorSize.default()),
)
def _final_warning(self, device_paths: str) -> bool:
def _final_warning(self) -> bool:
# Issue a final warning before we continue with something un-revertable.
# We mention the drive one last time, and count from 5 to 0.
out = tr(' ! Formatting {} in ').format(device_paths)
out = tr('Starting device modifications in ')
Tui.print(out, row=0, endl='', clear_screen=True)
try: