[PATCH] Wait til everyone knows the format/fs is no longer active.

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

 



The cryptsetup call to close the luks mapping fails with some
regularity, presumably because the device is still claiming to
be busy. The addition of this call to udev_settle has seemed to
solve the problem in my testing.
---
 storage/devices.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index b593ec7..d8a0323 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1321,6 +1321,7 @@ class LUKSDevice(DMCryptDevice):
 
         if self.status and self.format.exists:
             self.format.teardown()
+            udev_settle()
 
         if self.slave.format.exists:
             self.slave.format.teardown()
-- 
1.6.0.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