[f22-branch 1/1] Make sure the device is setup before formatting it (#1196397)
bcl
installerbot-noreply at redhat.com
Tue Mar 10 00:23:14 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
Reusing an existing LV wasn't working because it was not setup before
formatting.
---
blivet/deviceaction.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
index 9755f0f..60f8f32 100644
--- a/blivet/deviceaction.py
+++ b/blivet/deviceaction.py
@@ -573,6 +573,8 @@ def execute(self, callbacks=None):
get_current_entropy(), min_required_entropy)
self.device.format.min_luks_entropy = 0
+ self.device.setup()
+ udev.settle()
self.device.format.create(device=self.device.path,
options=self.device.formatArgs)
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/88ed6c11db4debd750283040a68cb4c27bd5c8e4
More information about the anaconda-patches
mailing list