From: Michael Tremer Date: Sat, 8 May 2021 13:28:27 +0000 (+0000) Subject: disk: Show status window when formatting partitions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fbbd02fe132b99fa3ee27f2f6a89378b1b59354b;p=people%2Fms%2Fbricklayer.git disk: Show status window when formatting partitions Signed-off-by: Michael Tremer --- diff --git a/src/python/disk.py b/src/python/disk.py index d1888ee..22d3fff 100644 --- a/src/python/disk.py +++ b/src/python/disk.py @@ -435,4 +435,8 @@ class CreateFilesystems(step.Step): def run(self, tui): for disk in self.bricklayer.disks.selected: for partition in disk.partitions: - partition.format() + with tui.progress( + _("Creating Filesystems"), + _("Formatting partition \"%s\"...") % (partition.name or partition.path) + ): + partition.format()