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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux