step.UnattendedWarning,
step.Welcome,
timezones.SelectTimezone,
+ disk.Scan,
disk.UnattendedSelectDisk,
disk.SelectDisk,
disk.CalculatePartitionLayout,
self.bricklayer.command(command)
+class Scan(step.Step):
+ def run(self):
+ with self.tui.progress(
+ _("Scanning for Disks"),
+ _("Scanning for disks..."),
+ ):
+ self.bricklayer.disks.scan()
+
+
class UnattendedSelectDisk(step.UnattendedStep):
"""
Scans for any disks
if self.bricklayer.disks.selected:
return
- # Scan for disks
- self.bricklayer.disks.scan()
-
# End here if we could not find any disks
if not self.bricklayer.disks.supported:
self.tui.error(
Ask the user which disk(s) to use for the installation process
"""
def run(self):
- # Scan for disks
- self.bricklayer.disks.scan()
-
# Create a dictionary with all disks
disks = { disk : "%s" % disk for disk in self.bricklayer.disks.supported }