[PATCH] Need to notify the kernel of changes before udev settle

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

 



Not sure how this worked yesterday, but order is important
---
 livecd.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/livecd.py b/livecd.py
index 96610cd..c6ed037 100644
--- a/livecd.py
+++ b/livecd.py
@@ -240,9 +240,10 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
                                stderr="/dev/tty5",
                                searchPath = 1)
         # and now set the uuid in the storage layer
-        storage.udev.udev_settle()
         rootDevice.updateSysfsPath()
         iutil.notify_kernel("/sys%s" %rootDevice.sysfsPath)
+        storage.udev.udev_settle()
+        rootDevice.updateSysfsPath()
         info = storage.udev.udev_get_block_device("/sys%s" % rootDevice.sysfsPath)
         rootDevice.format.uuid = storage.udev.udev_device_get_uuid(info)
         log.info("reset the rootdev (%s) to have a uuid of %s" %(rootDevice.sysfsPath, rootDevice.format.uuid))
-- 
1.6.1

_______________________________________________
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