[rhel7-branch 4/4] Update dmdev size when setting up disk images (#1252703)

bcl installerbot-noreply at redhat.com
Fri Aug 14 16:45:37 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

The size needs to be updated after the sysfs path has been setup.

Resolves: rhbz#1252703
---
 blivet/devicetree.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 70b0df0..74a2c11 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -2131,6 +2131,7 @@ def setupDiskImages(self):
                                        exists=True)
                 dmdev.setup()
                 dmdev.updateSysfsPath()
+                dmdev.updateSize()
                 log.debug("%s", dmdev)
             except (ValueError, DeviceError) as e:
                 log.error("failed to set up disk image: %s", e)


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/fd1d2b8086d9800c9867ed51b18ec378e97e6dcf


More information about the anaconda-patches mailing list