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:
parent
a229c6fbac
commit
0873225ad6
|
@ -16,7 +16,7 @@ class StorageChecker:
|
||||||
assert 'size' in action
|
assert 'size' in action
|
||||||
assert action['device'] in self.actions
|
assert action['device'] in self.actions
|
||||||
assert 'ptable' in self.actions[action['device']]
|
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'
|
assert self.actions[action['device']]['type'] == 'disk'
|
||||||
|
|
||||||
def _check_format(self, action):
|
def _check_format(self, action):
|
||||||
|
|
|
@ -594,7 +594,7 @@ class Partition(_Formattable):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def ok_for_raid(self):
|
def ok_for_raid(self):
|
||||||
if self.flag:
|
if self.flag in ('boot', 'bios_grub', 'prep'):
|
||||||
return False
|
return False
|
||||||
if self._fs is not None:
|
if self._fs is not None:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue