lint
This commit is contained in:
parent
46131d2b0b
commit
0ccd26bcaf
|
@ -1032,7 +1032,8 @@ class FilesystemModel(object):
|
|||
log.debug("adding %s to %s", fstype, volume)
|
||||
if not volume.available:
|
||||
if not isinstance(volume, Partition):
|
||||
if (volume.flag == 'prep' or (volume.flag == 'bios_grub' and fstype == 'fat32')):
|
||||
if (volume.flag == 'prep' or (
|
||||
volume.flag == 'bios_grub' and fstype == 'fat32')):
|
||||
raise Exception("{} is not available".format(volume))
|
||||
if isinstance(volume, Disk):
|
||||
self._use_disk(volume)
|
||||
|
|
|
@ -211,9 +211,8 @@ boot_partition_description = _(
|
|||
prep_partition_description = _(
|
||||
"Required bootloader partition\n"
|
||||
"\n"
|
||||
'This is the PReP partion which is required on POWER systems. Grub will be '
|
||||
'installed onto this partition. The '
|
||||
'only aspect of this partition that can be edited is the size.')
|
||||
'This is the PReP partion which is required on POWER. Grub will be '
|
||||
'installed onto this partition.')
|
||||
|
||||
|
||||
class PartitionStretchy(Stretchy):
|
||||
|
@ -312,7 +311,7 @@ class PartitionStretchy(Stretchy):
|
|||
focus_index = 2
|
||||
elif self.partition.flag == "prep":
|
||||
rows.extend([
|
||||
Text(_(prep_grub_partition_description)),
|
||||
Text(_(prep_partition_description)),
|
||||
Text(""),
|
||||
])
|
||||
focus_index = 2
|
||||
|
|
Loading…
Reference in New Issue