[RHEL 7.2 - PATCH 1/5] Fix obsolete format size constraints (#1178884)
Robert Marshall
rmarshall at redhat.com
Mon Jul 27 18:40:08 UTC 2015
From: David Lehman <dlehman at redhat.com>
The format type may impose limits on the device size. Unset the format
type prior to setting the device size and avoid constraints that may
change when the format is set later.
Cherry pick taken from master commit a5000d4.
Resolves: rhbz:#1178884
---
blivet/devicefactory.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index fb8ee27..0a86c90 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -643,6 +643,10 @@ class DeviceFactory(object):
pass
def _set_size(self):
+ # reset the device's format before allocating partitions, &c
+ if self.device.format.type != self.fstype:
+ self.device.format = None
+
# this is setting the device size based on the factory size and the
# current size of the container
self._set_device_size()
--
1.8.3.1
More information about the anaconda-patches
mailing list