- def validBootLoaderPartSize(self, size):
- """ Is the given size (in MB) acceptable for a bootloader device? """
- if not isinstance(size, int) and not isinstance(size, float):
- return False
-
- return ((self.bootloader.stage1_device_min_size is None or
- size >= self.bootloader.stage1_device_min_size)
- and
- (self.bootloader.stage1_device_max_size is None or
- size <= self.bootloader.stage1_device_max_size))
-
def weight(self, fstype=None, mountpoint=None):
""" Given an fstype (as a string) or a mountpoint, return an integer
for the base sorting weight. This is used to modify the sort
--
1.7.3.4
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list