Flags that do not indicate a bootloader partition are ok_for_raid

Existing partitions can turn up with flags like "linux" and these are
fine to put into a RAID. I also checked all the other places we inspect
flag to check they weren't being over strict and they seem fine.
This commit is contained in:
Michael Hudson-Doyle 2019-05-02 10:45:57 +12:00
parent a229c6fbac
commit 0873225ad6
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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