[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/4] Add udev_settle after setup of LUKSDevice. (#534043)



LVM (when looking for PVs) is finding the temporary udev device
instead of the real/final device, so this is to make sure things
are as they should be when lvm goes-a-hunting for devices.

We should probably be explicitly telling lvm which devices to look
for PVs on to avoid it scanning every block device every time we
run an lvm command.
---
 storage/devices.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 0243e34..e357d0c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1606,6 +1606,7 @@ class LUKSDevice(DMCryptDevice):
 
         self.slave.setup()
         self.slave.format.setup()
+        udev_settle()
 
         # we always probe since the device may not be set up when we want
         # information about it
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]