[PATCH] Be sure we have a sorted list of mountpoints for live mangling (#504986)

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

 



We need to have a sorted list of mountpoints so that our tree of mounts
ends up being correct.  This got ost in the translation to the new storage
code
---
 livecd.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/livecd.py b/livecd.py
index d8b2f0b..7efcd90 100644
--- a/livecd.py
+++ b/livecd.py
@@ -257,7 +257,8 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
 
         # now create a tree so that we know what's mounted under where
         fsdict = {"/": []}
-        for entry in anaconda.id.storage.fsset.mountpoints.itervalues():
+        for mount in sorted(anaconda.id.storage.fsset.mountpoints.keys()):
+            entry = anaconda.id.storage.fsset.mountpoints[mount]
             tocopy = entry.format.mountpoint
             if tocopy.startswith("/mnt") or tocopy == "swap":
                 continue
-- 
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