[PATCH 2/4] Devices with non-existent formatting are resizable. (#1027714)

David Lehman dlehman at redhat.com
Tue Nov 12 17:44:27 UTC 2013


Marking an existing device for reformat was causing it to no longer
show as resizable. This combination of operations was not supported
in anaconda's old user interface, but it seems useful.
---
 blivet/devices.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/devices.py b/blivet/devices.py
index d620eaf..bc614bd 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -654,7 +654,8 @@ class StorageDevice(Device):
     def resizable(self):
         """ Can this type of device be resized? """
         return (self._resizable and self.exists and
-                (self.format.type is None or self.format.resizable))
+                (self.format.type is None or self.format.resizable or
+                 not self.format.exists))
 
     def notifyKernel(self):
         """ Send a 'change' uevent to the kernel for this device. """
-- 
1.8.1.4



More information about the anaconda-patches mailing list