Skip to content

Commit

Permalink
Make sure the device is setup before formatting it (#1196397)
Browse files Browse the repository at this point in the history
Reusing an existing LV wasn't working because it was not setup before
formatting.
  • Loading branch information
bcl committed Mar 10, 2015
1 parent de1c0b9 commit 88ed6c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blivet/deviceaction.py
Expand Up @@ -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)

Expand Down

0 comments on commit 88ed6c1

Please sign in to comment.