summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-08-14 11:50:23 -0400
committerJeremy Katz <katzj@redhat.com>2009-08-14 11:50:23 -0400
commit7e292f6e332db078a5be7fe81b53aed26d021490 (patch)
treec935afb303fcc0c2b4fd00922f1e833f6b012076 /livecd.py
parent1fbf3c9d8d550fc01ae34528533377adc19d1611 (diff)
downloadanaconda-7e292f6e332db078a5be7fe81b53aed26d021490.tar.gz
anaconda-7e292f6e332db078a5be7fe81b53aed26d021490.tar.xz
anaconda-7e292f6e332db078a5be7fe81b53aed26d021490.zip
Be sure we have a sorted list of mountpoints for live mangling (#504986)
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
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/livecd.py b/livecd.py
index d8b2f0b62..7efcd90d6 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