Merge pull request #472 from mwhudson/flag-interpretation
Flags that do not indicate a bootloader partition are ok_for_raid
This commit is contained in:
commit
62a7f5fbad
|
@ -16,7 +16,7 @@ class StorageChecker:
|
|||
assert 'size' in action
|
||||
assert action['device'] in self.actions
|
||||
assert 'ptable' in self.actions[action['device']]
|
||||
if action['flag']:
|
||||
if action['flag'] in ('boot', 'bios_grub', 'prep'):
|
||||
assert self.actions[action['device']]['type'] == 'disk'
|
||||
|
||||
def _check_format(self, action):
|
||||
|
|
|
@ -594,7 +594,7 @@ class Partition(_Formattable):
|
|||
|
||||
@property
|
||||
def ok_for_raid(self):
|
||||
if self.flag:
|
||||
if self.flag in ('boot', 'bios_grub', 'prep'):
|
||||
return False
|
||||
if self._fs is not None:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue