From a272015edb6624ece70505221df433bc0df2da75 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Fri, 6 Mar 2015 12:08:08 -0600 Subject: [PATCH 13/19] Define LUKSDevice._create so enable _postCreate event sync. --- blivet/devices/luks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blivet/devices/luks.py b/blivet/devices/luks.py index 197926f..87970e4 100644 --- a/blivet/devices/luks.py +++ b/blivet/devices/luks.py @@ -67,6 +67,10 @@ class LUKSDevice(DMCryptDevice): size = self.currentSize return size + def _setup(self, orig=False): + # this makes the post-setup sync happen + super(LUKSDevice, self)._setup(orig=orig) + def _postCreate(self): self.name = self.slave.format.mapName StorageDevice._postCreate(self) -- 1.9.3