From 88ed6c11db4debd750283040a68cb4c27bd5c8e4 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 9 Mar 2015 17:20:14 -0700 Subject: [PATCH] Make sure the device is setup before formatting it (#1196397) 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 9755f0f93..60f8f32a2 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)