]> git.ipfire.org Git - people/ms/bricklayer.git/commitdiff
disk: Show status window when formatting partitions
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 May 2021 13:28:27 +0000 (13:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 8 May 2021 13:28:27 +0000 (13:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/disk.py

index d1888eebd7a8f095455973f1ea2eee4e99acaea5..22d3fffadf1612bd3a475f82ea871ec60aa65bef 100644 (file)
@@ -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()